aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2013-03-11 19:02:22 +0000
committerKeith Seitz <keiths@redhat.com>2013-03-11 19:02:22 +0000
commitcb8ea32b8dca8604bf700ff07a11b86f547e329f (patch)
treed8a640cee31a1d12bafbb66cbc674f8563105e6c /gdb/testsuite/gdb.base/watchpoint.exp
parentgdb/ (diff)
downloadbinutils-gdb-cb8ea32b8dca8604bf700ff07a11b86f547e329f.tar.gz
binutils-gdb-cb8ea32b8dca8604bf700ff07a11b86f547e329f.tar.bz2
binutils-gdb-cb8ea32b8dca8604bf700ff07a11b86f547e329f.zip
* watchpoint.exp (test_no_hw_watchpoints): Add test using
both condition and thread. Then delete the watchpoint.
Diffstat (limited to 'gdb/testsuite/gdb.base/watchpoint.exp')
-rw-r--r--gdb/testsuite/gdb.base/watchpoint.exp6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/watchpoint.exp b/gdb/testsuite/gdb.base/watchpoint.exp
index 5086ae52326..3befbba163e 100644
--- a/gdb/testsuite/gdb.base/watchpoint.exp
+++ b/gdb/testsuite/gdb.base/watchpoint.exp
@@ -814,6 +814,12 @@ proc test_no_hw_watchpoints {} {
gdb_test_no_output "delete \$bpnum" "delete watch ival3"
+ gdb_test "watch ival3 if count > 1 thread 1 " \
+ "Watchpoint \[0-9\]*: ival3.*" \
+ "set slow condition watch w/thread"
+
+ gdb_test_no_output "delete \$bpnum" "delete watch w/condition and thread"
+
# We've explicitly disabled hardware watches. Verify that GDB
# refrains from using them.
#