* watchpoint.exp (test_no_hw_watchpoints): Add test using
authorKeith Seitz <keiths@redhat.com>
Mon, 11 Mar 2013 19:02:22 +0000 (19:02 +0000)
committerKeith Seitz <keiths@redhat.com>
Mon, 11 Mar 2013 19:02:22 +0000 (19:02 +0000)
both condition and thread.  Then delete the watchpoint.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/watchpoint.exp

index f5b9dcbda4c7c2169f8e9349f0f4ec841008b689..feb38c7f6ea7dae24b642fd73771b67e333aaf69 100644 (file)
@@ -1,3 +1,8 @@
+2013-03-11  Keith Seitz  <keiths@redhat.com>
+
+       * watchpoint.exp (test_no_hw_watchpoints): Add test using
+       both condition and thread.  Then delete the watchpoint.
+
 2013-03-11  Christian Himpel  <christian.himpel@intel.com>
 
        * Makefile.in: Add btrace testsuite.
index 5086ae52326e0d635773afca00ffd7b4eb40f22c..3befbba163eabc869fca0b4b6750fe3a3784945b 100644 (file)
@@ -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.
     #