Testsuite: Fix ambiguous "break" due to libinproctrace
authorAndreas Arnez <arnez@linux.vnet.ibm.com>
Mon, 19 Mar 2018 12:13:09 +0000 (13:13 +0100)
committerAndreas Arnez <arnez@linux.vnet.ibm.com>
Mon, 19 Mar 2018 12:13:09 +0000 (13:13 +0100)
Some of GDB's trace test cases define a function end() and place a
breakpoint there with "break end".  However, when libinproctrace is linked
to the binary, there are multiple methods named "end", such as
std::string::end() from the C++ library or format_pieces::end() from
common/format.h.  GDB then creates multiple breakpoints instead of just a
single one, and some FAILs result, such as these:

  FAIL: gdb.trace/trace-mt.exp: ftrace on: break end
  FAIL: gdb.trace/trace-mt.exp: ftrace off: break end

Fix this by adding the "-qualified" option to the break commands.  For
consistency, change all occurrences of "break end" (and similar) in all
trace test cases, even if the current behavior does not cause problems.
Also, consequently use the gdb_breakpoint convenience proc.

gdb/testsuite/ChangeLog:

* gdb.trace/actions-changed.exp: Call gdb_breakpoint with the
"qualified" option when setting breakpoints.
* gdb.trace/backtrace.exp: Likewise.
* gdb.trace/circ.exp: Likewise.
* gdb.trace/collection.exp: Likewise.
* gdb.trace/disconnected-tracing.exp: Likewise.
* gdb.trace/ftrace-lock.exp: Likewise.
* gdb.trace/ftrace.exp: Likewise.
* gdb.trace/infotrace.exp: Likewise.
* gdb.trace/packetlen.exp: Likewise.
* gdb.trace/passc-dyn.exp: Likewise.
* gdb.trace/qtro.exp: Likewise.
* gdb.trace/read-memory.exp: Likewise.
* gdb.trace/report.exp: Likewise.
* gdb.trace/signal.exp: Likewise.
* gdb.trace/status-stop.exp: Likewise.
* gdb.trace/strace.exp: Likewise.
* gdb.trace/tfind.exp: Likewise.
* gdb.trace/trace-break.exp: Likewise.
* gdb.trace/trace-condition.exp: Likewise.
* gdb.trace/trace-mt.exp: Likewise.
* gdb.trace/tstatus.exp: Likewise.
* gdb.trace/tsv.exp: Likewise.
* gdb.trace/unavailable-dwarf-piece.exp: Likewise.
* gdb.trace/unavailable.exp: Likewise.
* gdb.trace/while-dyn.exp: Likewise.

26 files changed:
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/actions-changed.exp
gdb/testsuite/gdb.trace/backtrace.exp
gdb/testsuite/gdb.trace/circ.exp
gdb/testsuite/gdb.trace/collection.exp
gdb/testsuite/gdb.trace/disconnected-tracing.exp
gdb/testsuite/gdb.trace/ftrace-lock.exp
gdb/testsuite/gdb.trace/ftrace.exp
gdb/testsuite/gdb.trace/infotrace.exp
gdb/testsuite/gdb.trace/packetlen.exp
gdb/testsuite/gdb.trace/passc-dyn.exp
gdb/testsuite/gdb.trace/qtro.exp
gdb/testsuite/gdb.trace/read-memory.exp
gdb/testsuite/gdb.trace/report.exp
gdb/testsuite/gdb.trace/signal.exp
gdb/testsuite/gdb.trace/status-stop.exp
gdb/testsuite/gdb.trace/strace.exp
gdb/testsuite/gdb.trace/tfind.exp
gdb/testsuite/gdb.trace/trace-break.exp
gdb/testsuite/gdb.trace/trace-condition.exp
gdb/testsuite/gdb.trace/trace-mt.exp
gdb/testsuite/gdb.trace/tstatus.exp
gdb/testsuite/gdb.trace/tsv.exp
gdb/testsuite/gdb.trace/unavailable-dwarf-piece.exp
gdb/testsuite/gdb.trace/unavailable.exp
gdb/testsuite/gdb.trace/while-dyn.exp

index 065d9245ad012a59f311cd9fc85e4fed69f279b7..d2fb9a8780a370a3e30c2979cf708ffc15896b59 100644 (file)
@@ -1,3 +1,32 @@
+2018-03-19  Andreas Arnez  <arnez@linux.vnet.ibm.com>
+
+       * gdb.trace/actions-changed.exp: Call gdb_breakpoint with the
+       "qualified" option when setting breakpoints.
+       * gdb.trace/backtrace.exp: Likewise.
+       * gdb.trace/circ.exp: Likewise.
+       * gdb.trace/collection.exp: Likewise.
+       * gdb.trace/disconnected-tracing.exp: Likewise.
+       * gdb.trace/ftrace-lock.exp: Likewise.
+       * gdb.trace/ftrace.exp: Likewise.
+       * gdb.trace/infotrace.exp: Likewise.
+       * gdb.trace/packetlen.exp: Likewise.
+       * gdb.trace/passc-dyn.exp: Likewise.
+       * gdb.trace/qtro.exp: Likewise.
+       * gdb.trace/read-memory.exp: Likewise.
+       * gdb.trace/report.exp: Likewise.
+       * gdb.trace/signal.exp: Likewise.
+       * gdb.trace/status-stop.exp: Likewise.
+       * gdb.trace/strace.exp: Likewise.
+       * gdb.trace/tfind.exp: Likewise.
+       * gdb.trace/trace-break.exp: Likewise.
+       * gdb.trace/trace-condition.exp: Likewise.
+       * gdb.trace/trace-mt.exp: Likewise.
+       * gdb.trace/tstatus.exp: Likewise.
+       * gdb.trace/tsv.exp: Likewise.
+       * gdb.trace/unavailable-dwarf-piece.exp: Likewise.
+       * gdb.trace/unavailable.exp: Likewise.
+       * gdb.trace/while-dyn.exp: Likewise.
+
 2018-03-16  Andreas Arnez  <arnez@linux.vnet.ibm.com>
 
        * gdb.trace/tspeed.exp: Add invocation of gdb_load_shlib to ensure
index 5482291c014cadfed73e9ddaa0d8777385cf6724..102f04f7343999febcac625c3504058c843f09ef 100644 (file)
@@ -22,7 +22,7 @@ if {[prepare_for_testing "failed to prepare" $testfile $srcfile debug]} {
 }
 
 proc test_actions_changed { } {
-    gdb_breakpoint "end"
+    gdb_breakpoint "end" qualified
 
     gdb_test "trace subr" "Tracepoint .*" \
        "tracepoint at subr"
index 1842627046b05d34bc885834c8abe6a0e7ba7010..6b41f8945b919c5b051233e29a465a595e8552f5 100644 (file)
@@ -145,7 +145,7 @@ gdb_trace_setactions "8.6: setup TP to collect stack mem cast expr" \
 
 gdb_test_no_output "tstart" ""
 
-gdb_test "break end" ".*" ""
+gdb_breakpoint "end" qualified
 gdb_test "continue" \
     "Continuing.*Breakpoint $decimal, end.*" \
     "run trace experiment"
index f5312bdd3f3c4d50277e0f199df84ebb83d38edd..5af84feb24eaf90813472aa223e9e763e96f54e2 100644 (file)
@@ -66,7 +66,7 @@ proc run_trace_experiment { } {
     global decimal
 
     setup_tracepoints
-    gdb_test "break end" "Breakpoint $decimal.*" "breakpoint at end"
+    gdb_breakpoint "end" qualified
     gdb_test "tstart" "\[\r\n\]*" "start trace experiment"
     gdb_test "continue" "Continuing.*Breakpoint \[0-9\]+, end.*" \
        "run to end"
@@ -174,7 +174,7 @@ set frame_size -1
 with_test_prefix "frame size" {
     set_a_tracepoint func0
 
-    gdb_test "break end" "Breakpoint $decimal.*" "breakpoint at end"
+    gdb_breakpoint "end" qualified
 
     gdb_test "tstart" "\[\r\n\]*" "start trace"
 
index 4d3dc6bdab04134c3034a26d32ffcaf030b42c17..b7eee6dbf42f40eb112509a2af7ff0c4113161f7 100644 (file)
@@ -64,8 +64,8 @@ proc prepare_for_trace_test {} {
 
     runto_main
 
-    gdb_test "break begin" ".*" ""
-    gdb_test "break end" ".*" ""
+    gdb_breakpoint "begin" qualified
+    gdb_breakpoint "end" qualified
 }
 
 proc run_trace_experiment { msg test_func } {
index c806482fc679e25311c252d5e6364fe5087197cf..7e77699d0ca4facdfc391311630bb07991e41286 100644 (file)
@@ -62,7 +62,7 @@ proc disconnected_tracing {  } {
        gdb_test "trace start" ".*"
        gdb_trace_setactions "collect on tracepoint 2" "2" \
            "collect foo" "^$"
-       gdb_test "break end" "Breakpoint ${decimal} at .*"
+       gdb_breakpoint "end" qualified
 
        gdb_test_no_output "tstart"
 
@@ -125,7 +125,7 @@ proc disconnected_tfind {  } {
        gdb_test "trace start" ".*"
        gdb_test_no_output "tstart"
 
-       gdb_test "break end" "Breakpoint ${decimal} at .*"
+       gdb_breakpoint "end" qualified
        gdb_test "continue" "Continuing\\.\[ \r\n\]+Breakpoint.*"
        gdb_test_no_output "tstop"
 
index 4675e190b2c15bd562f823da6c7481f3196e35bd..3e5f0b8712ff10aa9a69f6bcbb660d7cd74ed966 100644 (file)
@@ -69,8 +69,8 @@ if { [gdb_test "info sharedlibrary" ".*${remote_libipa}.*" "IPA loaded"] != 0 }
     return 1
 }
 
-gdb_test "break end" ""
-gdb_test "break fail" ""
+gdb_breakpoint "end" qualified
+gdb_breakpoint "fail" qualified
 
 gdb_test "ftrace set_point" "Fast tracepoint .*" \
     "fast tracepoint at a long insn"
index 6389924cb815de052869fd662112e17c73b2cc6c..5c494c6bb4c96275bccd0f3560103f6f8c617652 100644 (file)
@@ -104,9 +104,9 @@ proc test_fast_tracepoints {} {
 
     set fourgood 0
 
-    gdb_test "break begin" ".*" ""
+    gdb_breakpoint "begin" qualified
 
-    gdb_test "break end" ".*" ""
+    gdb_breakpoint "end" qualified
 
     gdb_test "print gdb_agent_gdb_trampoline_buffer_error" ".*" ""
 
index 053dafb0d76f1674b33d1395358892c437bbdd89..b01365822cadd5de4f15ba07b42cc94a51fe7b75 100644 (file)
@@ -111,7 +111,7 @@ if { ![gdb_target_supports_trace] } then {
     return 1
 }
 
-gdb_test "break end" "Breakpoint \[0-9\] at .*"
+gdb_breakpoint "end" qualified
 gdb_test_no_output "tstart"
 gdb_test "continue" "Continuing\\.\[ \r\n\]+Breakpoint.*" \
     "continue to end"
index 3304904c13ffda3573814abe987d611e8aaa7cfa..ca54cfe15963702e2c852cb915bbf7c6baf91cdb 100644 (file)
@@ -61,7 +61,7 @@ gdb_trace_setactions "setup collect actions" \
        "end" ""
 
 gdb_test_no_output "tstart" "survive the long packet send"
-gdb_test "break end" ".*" ""
+gdb_breakpoint "end" qualified
 gdb_test "continue" \
     "Continuing.*Breakpoint $decimal, end.*" \
     "run trace experiment"
index 26ba79a5d01108b3e673c6cde112eed508676181..1738b46234a8004020aea81a383fd886995695a5 100644 (file)
@@ -86,7 +86,7 @@ gdb_test "passcount 3 $tdp4" "Setting tracepoint $tdp4's passcount to 3" \
 
 gdb_test "tstart" ".*" ""
 
-gdb_test "break end" ".*" ""
+gdb_breakpoint "end" qualified
 gdb_test "continue" \
     "Continuing.*Breakpoint $decimal, end.*" \
     "run trace experiment"
index 5fe1db4afb59874b827012ef4e18aed812f7a610..830d25f4370a4ef4d2b032d62c80e8ac1f75e257 100644 (file)
@@ -48,7 +48,7 @@ if ![gdb_target_supports_trace] {
 # frame (IOW, returns while tfind mode is active).
 proc prepare_for_trace_disassembly { } {
     global gdb_prompt
-    gdb_breakpoint "end"
+    gdb_breakpoint "end" qualified
 
     gdb_test "trace subr" "Tracepoint .*" \
        "tracepoint at subr"
index 27b23eab06dca51b354471f3b47b08244fdc5ac6..e91c7fdf748509f7567c0ea93d2ccee5f4eb586a 100644 (file)
@@ -42,7 +42,7 @@ proc set_tracepoint_and_collect { } {
        fail "can't run to main"
        return -1
     }
-    gdb_test "break end" "Breakpoint \[0-9\] at .*"
+    gdb_breakpoint "end" qualified
     gdb_test "trace start" "Tracepoint \[0-9\] at .*"
     gdb_trace_setactions "set action for tracepoint"  "" \
        "collect testglob" "^$" \
index 75a9e1c355130269bb1f32b8d7ac56af7ba99943..5155165b695c9c11d034b5f984f97a1de27d6581 100644 (file)
@@ -160,7 +160,7 @@ gdb_trace_setactions "9.x: setup TP to collect expressions" \
 
 gdb_test "tstart" ".*" ""
 
-gdb_test "break end" ".*" ""
+gdb_breakpoint "end" qualified
 gdb_test "continue" \
     "Continuing.*Breakpoint $decimal, end.*" \
     "run trace experiment"
index b2337685da8f6e4666a4293592d4fe6941c9c0b0..b860b12d634bb18bba5569c9dce4c157292ca0b3 100644 (file)
@@ -66,7 +66,7 @@ if ![runto_main] {
     return -1
 }
 
-gdb_test "break kill" "Breakpoint $decimal at .*"
+gdb_breakpoint "kill" qualified
 gdb_test "handle SIGABRT nostop noprint pass" ".*" "pass SIGABRT"
 
 # Hit the breakpoint on $syscall for the first time.  In this time,
@@ -119,7 +119,7 @@ gdb_test_multiple $test $test {
 }
 
 delete_breakpoints
-gdb_test "break start" "Breakpoint $decimal at .*"
+gdb_breakpoint "start" qualified
 gdb_continue_to_breakpoint "continue to start"
 
 gdb_assert { 0 == [get_integer_valueof "counter" "1"] } "counter is zero"
@@ -135,7 +135,7 @@ set tpnum [get_integer_valueof "\$bpnum" 0]
 gdb_test "trace *$syscall_insn_next" "Tracepoint $decimal at .*" \
     "tracepoint on instruction following syscall instruction"
 
-gdb_test "break end" "Breakpoint $decimal at .*"
+gdb_breakpoint "end" qualified
 
 gdb_test_no_output "tstart"
 gdb_test "continue" ".*Breakpoint.* end .*at.*$srcfile.*" \
index 551c018b74e5de3bf1e83329c854e68907c0fc68..378bf2dba924bd5b41319327cf9745b298ed4724 100644 (file)
@@ -51,7 +51,7 @@ proc test_tstart_tstop_tstart { } {
        gdb_test "trace func1" "Tracepoint \[0-9\] at $hex: file.*"
        gdb_test_no_output "tstart"
 
-       gdb_test "break end" "Breakpoint \[0-9\] at $hex: file.*"
+       gdb_breakpoint "end" qualified
        gdb_test "continue" "Continuing\\.\[ \r\n\]+Breakpoint.*" \
            "continue to end"
 
@@ -108,7 +108,7 @@ proc test_buffer_full_tstart { } {
            "collect buf" "^$"
 
        gdb_test_no_output "tstart"
-       gdb_test "break end" "Breakpoint \[0-9\] at $hex: file.*"
+       gdb_breakpoint "end" qualified
        gdb_test "continue" "Continuing\\.\[ \r\n\]+Breakpoint.*" "continue to end"
 
        gdb_test "tstatus" ".*buffer was full.*"
index 124deb6f7f5140032c17ddee1c020d59c40b31a7..4b70674491ede1b307a4e9e47d19119ec20a72d9 100644 (file)
@@ -185,7 +185,7 @@ proc strace_probe_marker { } {
        gdb_test "info static-tracepoint-markers" \
            "ust/bar\[\t \]+y\[\t \]+$hex .*ust/bar2\[\t \]+y\[\t \]+$hex.*"
 
-       gdb_test "break end" "Breakpoint \[0-9\]+ at.*"
+       gdb_breakpoint "end" qualified
 
        gdb_test_no_output "tstart"
        gdb_test "continue" "Continuing\\.\[ \r\n\]+Breakpoint.*" \
@@ -274,7 +274,7 @@ proc strace_trace_on_same_addr { type } {
            }
        }
 
-       gdb_test "break end" "Breakpoint \[0-9\]+ at.*"
+       gdb_breakpoint "end" qualified
 
        if [string equal $type "break"] {
            gdb_test "continue" "Continuing\\.\[ \r\n\]+Breakpoint.*" \
@@ -350,7 +350,7 @@ proc strace_trace_on_diff_addr { } {
        gdb_test "trace *${marker_bar2_addr}" \
            "Tracepoint \[0-9\]+ at ${hex}: file.*"
 
-       gdb_test "break end" "Breakpoint \[0-9\]+ at.*"
+       gdb_breakpoint "end" qualified
 
        gdb_test_no_output "tstart"
        gdb_test "continue" "Continuing\\.\[ \r\n\]+Breakpoint.*" \
index 251877af371892541059500512b39bb2e243f4ae..c466862333bc4e4cf0b76dfd82d41a0d399bd4f0 100644 (file)
@@ -127,7 +127,7 @@ if { $return_me == 1 } then {
 # test tstatus (when trace on)
 gdb_test "tstatus" "\[Tt\]race is running.*" "test tstatus on"
 
-gdb_test "break end" ".*" ""
+gdb_breakpoint "end" qualified
 gdb_test "continue" \
     "Continuing.*Breakpoint $decimal, end.*" \
     "run trace experiment"
index 539fcb5218ac4b74b075be9cb2efcd69eb69cdc9..84c4780ba2a71d22008850a3987fb6aacaad7080 100644 (file)
@@ -53,9 +53,9 @@ proc break_trace_same_addr_1 { trace_type option } \
 
     gdb_test_no_output "set breakpoint always-inserted ${option}"
 
-    gdb_test "break end" "Breakpoint \[0-9\] at $hex: file.*"
+    gdb_breakpoint "end" qualified
 
-    gdb_test "break set_point" "Breakpoint \[0-9\] at $hex: file.*"
+    gdb_breakpoint "set_point" qualified
     gdb_test "${trace_type} set_point" "\(Fast t|T\)racepoint \[0-9\] at $hex: file.*"
 
     gdb_test_no_output "tstart"
@@ -88,7 +88,7 @@ proc break_trace_same_addr_2 { trace_type1 trace_type2 option } \
 
     gdb_test_no_output "set breakpoint always-inserted ${option}"
 
-    gdb_test "break end" "Breakpoint \[0-9\] at $hex: file.*"
+    gdb_breakpoint "end" qualified
 
     gdb_test "${trace_type1} set_point" \
        "\(Fast t|T\)racepoint \[0-9\] at $hex: file.*" \
@@ -126,10 +126,10 @@ proc break_trace_same_addr_3 { trace_type option } \
     }
 
     gdb_test_no_output "set breakpoint always-inserted ${option}"
-    gdb_test "break marker" "Breakpoint \[0-9\] at $hex: file.*"
-    gdb_test "break end" "Breakpoint \[0-9\] at $hex: file.*"
+    gdb_breakpoint "marker" qualified
+    gdb_breakpoint "end" qualified
 
-    gdb_test "break set_point" "Breakpoint \[0-9\] at $hex: file.*"
+    gdb_breakpoint "set_point" qualified
     gdb_test "${trace_type} set_point" "\(Fast t|T\)racepoint \[0-9\] at $hex: file.*"
 
     gdb_test_no_output "tstart"
@@ -164,10 +164,10 @@ proc break_trace_same_addr_4 { trace_type option } \
     }
 
     gdb_test_no_output "set breakpoint always-inserted ${option}"
-    gdb_test "break marker" "Breakpoint \[0-9\] at $hex: file.*"
-    gdb_test "break end" "Breakpoint \[0-9\] at $hex: file.*"
+    gdb_breakpoint "marker" qualified
+    gdb_breakpoint "end" qualified
 
-    gdb_test "break set_point" "Breakpoint \[0-9\] at $hex: file.*"
+    gdb_breakpoint "set_point" qualified
     gdb_test "${trace_type} set_point" "\(Fast t|T\)racepoint \[0-9\] at $hex: file.*"
 
     gdb_test "continue" "Continuing\\.\[ \r\n\]+(Thread .* hit )?Breakpoint.*" \
@@ -207,8 +207,8 @@ proc break_trace_same_addr_5 { trace1 trace2 trace3 trace3_at_first_loc } \
        return -1
     }
 
-    gdb_test "break marker" "Breakpoint \[0-9\] at $hex: file.*"
-    gdb_test "break end" "Breakpoint \[0-9\] at $hex: file.*"
+    gdb_breakpoint "marker" qualified
+    gdb_breakpoint "end" qualified
 
     gdb_test "${trace1} set_point" "\(Fast t|T\)racepoint \[0-9\] at $hex: file.*" \
        "${trace1} set_point 1"
@@ -281,8 +281,8 @@ proc break_trace_same_addr_6 { trace1 enable1 trace2 enable2 } \
        return -1
     }
 
-    gdb_test "break marker" "Breakpoint \[0-9\] at $hex: file.*"
-    gdb_test "break end" "Breakpoint \[0-9\] at $hex: file.*"
+    gdb_breakpoint "marker" qualified
+    gdb_breakpoint "end" qualified
 
     gdb_test "continue" "Continuing\\.\[ \r\n\]+(Thread .* hit )?Breakpoint.*" \
        "continue to marker"
index 12a42ffb92cf4738ccb0af32886e14bedea857ef..d23e6a3f5b715ac33f26f7777515dc1c9320a974 100644 (file)
@@ -71,9 +71,9 @@ proc test_tracepoints { trace_command condition num_frames { kfail_proc 0 } } {
        return 0
     }
 
-    gdb_test "break begin" ".*" ""
+    gdb_breakpoint "begin" qualified
 
-    gdb_test "break end" ".*" ""
+    gdb_breakpoint "end" qualified
 
     with_test_prefix "${trace_command}: ${condition}" {
 
index f327406a13d9164a808066f88873f5754a6d2dc8..6e18666111be0693f234385e70fa368aad17d5e3 100644 (file)
@@ -81,7 +81,7 @@ proc break_trace_same_addr { trace_type option } \
 
     gdb_test_no_output "set breakpoint always-inserted ${option}"
 
-    gdb_test "break end" "Breakpoint \[0-9\] at $hex: file.*"
+    gdb_breakpoint "end" qualified
 
     gdb_test "break set_point1" "Breakpoint \[0-9\] at $hex: file.*"
     gdb_test "${trace_type} set_point1" "\(Fast t|T\)racepoint \[0-9\] at $hex: file.*"
index d24c03738a61a78480b85cc75016d63a2a8b51e6..3498b1c13c02165d69def4635d291655d3ca7c2d 100644 (file)
@@ -119,9 +119,9 @@ proc run_trace_experiment {} {
 proc test_tracepoints {} {
     global gdb_prompt
 
-    gdb_test "break begin" ".*" ""
+    gdb_breakpoint "begin" qualified
 
-    gdb_test "break end" ".*" ""
+    gdb_breakpoint "end" qualified
 
     gdb_test "trace gdb_c_test" "Tracepoint .*" \
        "tracepoint at gdb_c_test"
index e08c668c5027f2affcfaaa2447bc168ffe12c59e..a86919a75d663841fabea78dbbd7c16d4f54a2d9 100644 (file)
@@ -136,7 +136,7 @@ gdb_test "print \$tvar5" " = 15" \
     "Print a trace state variable at start of run"
 
 # Be sure not to fall off the end of the program.
-gdb_test "break end" ".*" ""
+gdb_breakpoint "end" qualified
 gdb_test "continue" \
     "Continuing.*Breakpoint $decimal, end.*" \
     "run trace experiment"
index 99f4fbe05c54a8fc86a9199159b1b8ba2a68bc0f..9fd3a739a70521f264e0e50c3fb24a863a0b833d 100644 (file)
@@ -303,7 +303,7 @@ if ![gdb_target_supports_trace] {
     return -1
 }
 
-gdb_breakpoint "end"
+gdb_breakpoint "end" qualified
 
 with_test_prefix "tracing foo" {
     gdb_test "trace *foo_start_lbl" ".*"
index 79aa8ef1b02b9530825b5de9e0946f7a819dacbb..181c9af8aa3f61b53f8864b4988fb1aad030ef7d 100644 (file)
@@ -61,8 +61,8 @@ proc prepare_for_trace_test {} {
 
     runto_main
 
-    gdb_test "break begin" ".*" ""
-    gdb_test "break end" ".*" ""
+    gdb_breakpoint "begin" qualified
+    gdb_breakpoint "end" qualified
 }
 
 proc run_trace_experiment { test_func } {
index 6728aeda64abcb8dd30feaa7ab75b319d235befa..0fb6b47b0b1c84c8d8bf4487ffd1fc03da8c9cd0 100644 (file)
@@ -72,7 +72,7 @@ proc test_while_stepping { while_stepping } {
 
     gdb_test "tstart" ".*" ""
 
-    gdb_test "break end" ".*" ""
+    gdb_breakpoint "end" qualified
     gdb_test "continue" \
        "Continuing.*Breakpoint $decimal, end.*" \
        "$while_stepping: run trace experiment"