diff options
Diffstat (limited to 'gdb/testsuite/gdb.trace/while-stepping.exp')
-rw-r--r-- | gdb/testsuite/gdb.trace/while-stepping.exp | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.trace/while-stepping.exp b/gdb/testsuite/gdb.trace/while-stepping.exp index 340bf27..519d6af 100644 --- a/gdb/testsuite/gdb.trace/while-stepping.exp +++ b/gdb/testsuite/gdb.trace/while-stepping.exp @@ -99,9 +99,19 @@ gdb_test "info tracepoints" \ .*end.*" \ "5.16: confirm actions, step without collecting anything" -gdb_test "break main" +# Can't use runto_main here, because that would delete the tracepoints +# created above. + +# Load the binary to the target too. +gdb_load $binfile + +gdb_breakpoint "main" gdb_run_cmd -gdb_test "" "Breakpoint .*" +if {[gdb_test "" "Breakpoint .*"] != 0} { + fail "Can't run to main" + return -1 +} + if ![gdb_target_supports_trace] { unsupported "target does not support trace" return -1 |