summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.exp
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.exp')
-rw-r--r--gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.exp7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.exp b/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.exp
index aa983f7c748..89b66e55de6 100644
--- a/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.exp
+++ b/gdb/testsuite/gdb.threads/step-over-trips-on-watchpoint.exp
@@ -96,7 +96,8 @@ proc do_test { displaced with_bp } {
delete_breakpoints
}
- gdb_breakpoint "*$address_triggers_watch"
+ gdb_test "break *$address_triggers_watch" "Breakpoint .*" \
+ "set breakpoint at address that triggers watch"
gdb_continue_to_breakpoint \
"run to instruction that triggers watch in thread 2"
@@ -105,7 +106,9 @@ proc do_test { displaced with_bp } {
gdb_test "watch watch_me" "Hardware watchpoint .*"
if ${with_bp} {
- gdb_test "b *$after_address_triggers_watch thread 1"
+ gdb_test "b *$after_address_triggers_watch thread 1" \
+ "Breakpoint .*" \
+ "set breakpoint specific to thread 1"
}
# Switch back to thread 1 and disable scheduler locking.