aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime-gdb_test.go
diff options
context:
space:
mode:
authorKeith Randall <keithr@alum.mit.edu>2017-10-09 10:08:54 -0700
committerKeith Randall <khr@golang.org>2017-10-09 21:30:03 +0000
commit7830a19a4fcbb79c7a3a27e80449a3b15cb26e31 (patch)
treec08795ae7171db14dead5c0b0e2ee679bc4037e2 /src/runtime/runtime-gdb_test.go
parent4a2376ef027b0767bb6e0161ef8cfd13f3bc61bb (diff)
downloadgo-7830a19a4fcbb79c7a3a27e80449a3b15cb26e31.tar.xz
cmd/compile: add ideal int constants to dwarf
The core dump reader would like a bunch of ideal int constants to be available in dwarf. Makes the go binary 0.9% bigger. Update #14517 Change-Id: I00cdfc7f53bcdc56fccba576c1d33010f03bdd95 Reviewed-on: https://go-review.googlesource.com/69270 Run-TryBot: Keith Randall <khr@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
Diffstat (limited to 'src/runtime/runtime-gdb_test.go')
-rw-r--r--src/runtime/runtime-gdb_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/runtime-gdb_test.go b/src/runtime/runtime-gdb_test.go
index a190aa28d1..03194bcd58 100644
--- a/src/runtime/runtime-gdb_test.go
+++ b/src/runtime/runtime-gdb_test.go
@@ -427,6 +427,7 @@ func TestGdbConst(t *testing.T) {
"-ex", "print main.largeConstant",
"-ex", "print main.minusOne",
"-ex", "print 'runtime._MSpanInUse'",
+ "-ex", "print 'runtime._PageSize'",
filepath.Join(dir, "a.exe"),
}
got, _ := exec.Command("gdb", args...).CombinedOutput()
@@ -435,7 +436,7 @@ func TestGdbConst(t *testing.T) {
t.Logf("output %q", sgot)
- if !strings.Contains(sgot, "\n$1 = 42\n$2 = 18446744073709551615\n$3 = -1\n$4 = 1 '\\001'") {
+ if !strings.Contains(sgot, "\n$1 = 42\n$2 = 18446744073709551615\n$3 = -1\n$4 = 1 '\\001'\n$5 = 8192") {
t.Fatalf("output mismatch")
}
}