[PATCH/ob]annota3.exp

Elena Zannoni ezannoni@redhat.com
Fri Nov 7 15:46:00 GMT 2003


Peter Schauer pointed out to me that I'd missed this one. 
Same as the patch for annota2.exp. Accept 'Hardware watchpoint' as output
as well as 'Watchpoint'.
committed as obvious.

elena

2003-11-07  Elena Zannoni  <ezannoni@redhat.com>

	* gdb.cp/annota3.exp: Make sure we can match 'Hardware watchpoint'
        as well as 'Watchpoint'.

Index: annota3.exp
===================================================================
RCS file: /cvs/uberbaum/gdb/testsuite/gdb.cp/annota3.exp,v
retrieving revision 1.1
diff -u -p -r1.1 annota3.exp
--- annota3.exp 23 Aug 2003 03:55:59 -0000      1.1
+++ annota3.exp 7 Nov 2003 15:44:56 -0000
@@ -196,7 +196,7 @@ gdb_expect_list "set watch on a.x" "$gdb
 #
 send_gdb "next\n"
 gdb_expect {
-    -re "\r\n\032\032post-prompt\r\n\r\n\032\032starting\r\n\(\r\n\032\032frames-invalid\r\n\)+\r\n\032\032watchpoint 3\r\nWatchpoint 3: a.x\r\n\r\nOld value = 0\r\nNew value = 1\r\nmain \\(\\) at .*$srcfile:$decimal\r\n\r\n\032\032source .*$srcfile.*beg:$hex\r\n\r\n\032\032stopped\r\n.*$gdb_prompt$" {
+    -re "\r\n\032\032post-prompt\r\n\r\n\032\032starting\r\n\(\r\n\032\032frames-invalid\r\n\)+\r\n\032\032watchpoint 3\r\n.*atchpoint 3: a.x\r\n\r\nOld value =
0\r\nNew value = 1\r\nmain \\(\\) at .*$srcfile:$decimal\r\n\r\n\032\032source .*$srcfile.*beg:$hex\r\n\r\n\032\032stopped\r\n.*$gdb_prompt$" {
        pass "watch triggered on a.x"
     }
     -re "\r\n\032\032post-prompt\r\n\r\n\032\032starting\r\n\r\n\032\032frames-invalid\r\n\r\n\032\032source .*$srcfile.*beg:$hex\r\n\r\n\032\032stopped\r\n$gdb_prompt$" {




More information about the Gdb-patches mailing list