aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.go/hello.go
diff options
context:
space:
mode:
authorAndreas Arnez <arnez@linux.vnet.ibm.com>2015-04-16 13:03:47 +0200
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2015-04-16 13:03:47 +0200
commit04ff1e612ece7915c5c0f94c84f90f55e4c50059 (patch)
treee8d5113a3ffc06d5b126c57194e1513357d339b8 /gdb/testsuite/gdb.go/hello.go
parent4c0cab1e212bd0f25879b00393bbb60e114ac724 (diff)
downloadgdb-04ff1e612ece7915c5c0f94c84f90f55e4c50059.zip
gdb-04ff1e612ece7915c5c0f94c84f90f55e4c50059.tar.gz
gdb-04ff1e612ece7915c5c0f94c84f90f55e4c50059.tar.bz2
GDB tests for Go language support: remove unnecessary first breakpoint
On s390x targets some of the Go test cases fail because the first breakpoint happens to be at the same spot as the breakpoint at main.main. When such a test case tries to continue to the first breakpoint, the program runs until the end instead, and the test fails like this: FAIL: gdb.go/handcall.exp: Going to first breakpoint (the program exited) This patch removes all the handling related to the first breakpoint in those cases. After applying the patch, the tests run successfully on s390x. gdb/testsuite/ChangeLog: * gdb.go/handcall.exp: Remove all logic related to the first breakpoint and rely on go_runto_main instead. * gdb.go/strings.exp: Likewise. * gdb.go/unsafe.exp: Likewise. * gdb.go/hello.exp: Likewise. Also rename the remaining breakpoint marker to "breakpoint 1". * gdb.go/handcall.go: Remove comment "set breakpoint 1 here". * gdb.go/strings.go: Likewise. * gdb.go/unsafe.go: Likewise. * gdb.go/hello.go: Likewise. Also remove the second occurrence of "set breakpoint 2 here" and rename the remaining breakpoint marker to "breakpoint 1".
Diffstat (limited to 'gdb/testsuite/gdb.go/hello.go')
-rw-r--r--gdb/testsuite/gdb.go/hello.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/testsuite/gdb.go/hello.go b/gdb/testsuite/gdb.go/hello.go
index 6e56112..17b1d4a 100644
--- a/gdb/testsuite/gdb.go/hello.go
+++ b/gdb/testsuite/gdb.go/hello.go
@@ -5,8 +5,8 @@ import "fmt"
var myst = "Shall we?"
func main () {
- fmt.Println ("Before assignment") // set breakpoint 1 here
+ fmt.Println ("Before assignment")
st := "Hello, world!" // this intentionally shadows the global "st"
- fmt.Println (st) // set breakpoint 2 here
- fmt.Println (myst) // set breakpoint 2 here
+ fmt.Println (st) // set breakpoint 1 here
+ fmt.Println (myst)
}