aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/watchpoint.c
diff options
context:
space:
mode:
authorDavid Carlton <carlton@bactrian.org>2003-03-17 19:51:58 +0000
committerDavid Carlton <carlton@bactrian.org>2003-03-17 19:51:58 +0000
commit293e9a3142dabaf46ab93191bad3a0e76fe75a0b (patch)
tree7c05246411e72ab4db70327f1ed93b75b3ad59ae /gdb/testsuite/gdb.base/watchpoint.c
parent94e10508982b22ad3f65e7eb73361057455efa3f (diff)
downloadgdb-293e9a3142dabaf46ab93191bad3a0e76fe75a0b.zip
gdb-293e9a3142dabaf46ab93191bad3a0e76fe75a0b.tar.gz
gdb-293e9a3142dabaf46ab93191bad3a0e76fe75a0b.tar.bz2
2003-03-17 David Carlton <carlton@math.stanford.edu>
* gdb.base/watchpoint.exp (test_watchpoint_and_breakpoint): New test, for PR breakpoints/38. Call test_watchpoint_and_breakpoint. * gdb.base/watchpoint.c (func3): New function. (main): Call func3.
Diffstat (limited to 'gdb/testsuite/gdb.base/watchpoint.c')
-rw-r--r--gdb/testsuite/gdb.base/watchpoint.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/watchpoint.c b/gdb/testsuite/gdb.base/watchpoint.c
index 14ccecd..1a61ba1 100644
--- a/gdb/testsuite/gdb.base/watchpoint.c
+++ b/gdb/testsuite/gdb.base/watchpoint.c
@@ -83,6 +83,18 @@ func2 ()
static_b = local_a;
}
+void
+func3 ()
+{
+ int x;
+ int y;
+
+ x = 0;
+ x = 1; /* second x assignment */
+ y = 1;
+ y = 2;
+}
+
int
func1 ()
{
@@ -170,5 +182,8 @@ int main ()
recurser (2);
marker6 ();
+
+ func3 ();
+
return 0;
}