This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] Add watchpoint test with both condition and thread keywords
- From: Keith Seitz <keiths at redhat dot com>
- To: "gdb-patches at sourceware dot org ml" <gdb-patches at sourceware dot org>
- Date: Fri, 08 Mar 2013 10:34:00 -0800
- Subject: [RFA] Add watchpoint test with both condition and thread keywords
Hi,
While attempting to fix up my constify parse_exp_1 mini-patch, I
discovered the branch of watch_command_1 which does "*tok = '\0';" (evil
as it is) is completely untested.
So I'm adding one to aid my hacking.
Keith
testsuite/ChangeLog
2013-03-08 Keith Seitz <keiths@redhat.com>
* watchpoint.exp: Add test using both condition and thread.
Index: testsuite/gdb.base/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
--- testsuite/gdb.base/watchpoint.exp 1 Jan 2013 06:33:26 -0000 1.61
+++ testsuite/gdb.base/watchpoint.exp 8 Mar 2013 18:33:39 -0000
@@ -808,6 +808,10 @@ 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 "continue" \
"Watchpoint \[0-9\]*: ival3.*Old value = 1.*New value = 2.*" \
"trigger slow conditional watch"