+2015-04-16 Andreas Arnez <arnez@linux.vnet.ibm.com>
+
+ * 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".
+
2015-04-15 Simon Marchi <simon.marchi@ericsson.com>
* gdb.python/py-framefilter.py (ErrorFilter.filter): Use map function
return -1
}
-set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
-
if { [go_runto_main] < 0 } {
untested $testfile
return -1
}
-if { [gdb_breakpoint ${srcfile}:${bp_location1}] } {
- pass "setting breakpoint 1"
-}
-
-gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "Going to first breakpoint"
-
gdb_test "print add (1, 2)" " = 3"
gdb_test "print main.add (1, 2)" " = 3"
var v_int int
func main () {
- v_int = 42 // set breakpoint 1 here
+ v_int = 42
}
}
set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
-set bp_location2 [gdb_get_line_number "set breakpoint 2 here"]
if { [go_runto_main] < 0 } {
untested $testfile
return -1
}
-if { [gdb_breakpoint ${srcfile}:${bp_location1}] } {
- pass "setting breakpoint 1"
-}
-
-gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "Going to first breakpoint"
-
# This used to print "", i.e., the local "st" initialized as "".
setup_xfail "*-*-*"
".* = $hex \"\"" \
"Starting string check"
-if { [gdb_breakpoint ${srcfile}:${bp_location2}] } {
- pass "setting breakpoint 2"
+if { [gdb_breakpoint ${srcfile}:${bp_location1}] } {
+ pass "setting breakpoint 1"
}
-gdb_test "cont" "Breakpoint .*:${bp_location2}.*" "Going to second breakpoint"
+gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "Going to first breakpoint"
gdb_test "print st" \
".* = $hex \"Hello, world!\"" \
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)
}
return -1
}
-set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
-
if { [go_runto_main] < 0 } {
untested $testfile
return -1
}
-if { [gdb_breakpoint ${srcfile}:${bp_location1}] } {
- pass "setting breakpoint 1"
-}
-
-gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "Going to first breakpoint"
-
gdb_test {print "abc" + "def"} {.* = "abcdef"}
var v_string string = "foo"
func main () {
- fmt.Println ("hello") // set breakpoint 1 here
+ fmt.Println ("hello")
fmt.Printf ("%s\n", v_string)
}
return -1
}
-set bp_location1 [gdb_get_line_number "set breakpoint 1 here"]
-
if { [go_runto_main] < 0 } {
untested $testfile
return -1
}
-if { [gdb_breakpoint ${srcfile}:${bp_location1}] } {
- pass "setting breakpoint 1"
-}
-
-gdb_test "cont" "Breakpoint .*:${bp_location1}.*" "Going to first breakpoint"
-
gdb_test "print unsafe.Sizeof(42)" ".* = 4"
var mystring = "Shall we?"
func main () {
- fmt.Printf ("%d\n", unsafe.Sizeof (42)) // set breakpoint 1 here
+ fmt.Printf ("%d\n", unsafe.Sizeof (42))
fmt.Printf ("%d\n", unsafe.Sizeof (mystring))
}