This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFA] Add watchpoint test with both condition and thread keywords


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.

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.

diff --git a/gdb/testsuite/gdb.base/watchpoint.exp b/gdb/testsuite/gdb.base/watchpoint.exp
index 5086ae5..08a4a9a 100644
--- a/gdb/testsuite/gdb.base/watchpoint.exp
+++ b/gdb/testsuite/gdb.base/watchpoint.exp
@@ -808,6 +808,12 @@ proc test_no_hw_watchpoints {} {
"Watchpoint \[0-9\]*: ival3.*" \
"set slow conditional watch"


+    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/cond and thread"
+
     gdb_test "continue" \
 	"Watchpoint \[0-9\]*: ival3.*Old value = 1.*New value = 2.*" \
 	"trigger slow conditional watch"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]