This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Add watchpoint test with both condition and thread keywords
On 03/08/2013 11:08 AM, Pedro Alves wrote:
On 03/08/2013 07:05 PM, Keith Seitz wrote:
On 03/08/2013 11:00 AM, Keith Seitz wrote:
/me gets more coffee
I should have done this BEFORE I sent the "revised" patch. :-(
Sorry about that.
Not a problem at all.
Sheesh. Wrong window/branch. Hopefully sixty-third time is the charm!
Keith
testsuite/ChangeLog
2013-03-08 Keith Seitz <keiths@redhat.com>
* watchpoint.exp (test_no_hw_watchpoints): Add test using
both condition and thread. Then delete the watchpoint.
Index: watchpoint.exp
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/watchpoint.exp,v
retrieving revision 1.61
diff -u -p -r1.61 watchpoint.exp
--- watchpoint.exp 1 Jan 2013 06:33:26 -0000 1.61
+++ watchpoint.exp 8 Mar 2013 19:23:59 -0000
@@ -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.
#