Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [RFA] Add watchpoint test with both condition and thread keywords
@ 2013-03-08 18:34 Keith Seitz
  2013-03-08 18:45 ` Pedro Alves
  0 siblings, 1 reply; 8+ messages in thread
From: Keith Seitz @ 2013-03-08 18:34 UTC (permalink / raw)
  To: gdb-patches@sourceware.org ml

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"


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-03-11 19:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-03-08 18:34 [RFA] Add watchpoint test with both condition and thread keywords Keith Seitz
2013-03-08 18:45 ` Pedro Alves
2013-03-08 19:01   ` Keith Seitz
2013-03-08 19:05     ` Keith Seitz
2013-03-08 19:08       ` Pedro Alves
2013-03-08 19:24         ` Keith Seitz
2013-03-08 19:29           ` Pedro Alves
2013-03-11 19:03             ` Keith Seitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox