diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2012-08-02 15:55:45 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2012-08-02 15:55:45 +0000 |
commit | bdddb4dec8340fcf738d014fe772c059eaf06053 (patch) | |
tree | c9af0db90267192d85fc16db29be8635f0584ba8 /gdb/testsuite/gdb.base/watchpoint.c | |
parent | 7c3270aec11d401689c9b9cbd6b1c9d574385526 (diff) | |
download | binutils-gdb-bdddb4dec8340fcf738d014fe772c059eaf06053.tar.gz |
* gdb.base/watchpoint.c (func2): Initialize local_a. Add
marker comment at the beginning (after intialization).
* gdb.base/watchpoint.exp (test_complex_watchpoint): Set func2
breakpoint on marker comment instead of function begin.
(test_wide_location_1): Do not expect HW watchpoints on 32-bit
PowerPC.
(test_wide_location_2): Do not expect HW watchpoints on 32-bit
or 64-bit PowerPC.
(do_tests): Consistently set can-use-hw-watchpoints to 0 if
gdb,no_hardware_watchpoints flag is set.
(initialize): Remove now redundant can-use-hw-watchpoints change.
Diffstat (limited to 'gdb/testsuite/gdb.base/watchpoint.c')
-rw-r--r-- | gdb/testsuite/gdb.base/watchpoint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/watchpoint.c b/gdb/testsuite/gdb.base/watchpoint.c index 88c110f273e..e887f99aebb 100644 --- a/gdb/testsuite/gdb.base/watchpoint.c +++ b/gdb/testsuite/gdb.base/watchpoint.c @@ -90,9 +90,10 @@ void recurser (x) int x; void func2 () { - int local_a; + int local_a = 0; static int static_b; + /* func2 breakpoint here */ ival5++; local_a = ival5; static_b = local_a; |