diff options
Diffstat (limited to 'gdb/testsuite/gdb.base/watchpoints.exp')
-rw-r--r-- | gdb/testsuite/gdb.base/watchpoints.exp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.base/watchpoints.exp b/gdb/testsuite/gdb.base/watchpoints.exp index 7abe14b..616de13 100644 --- a/gdb/testsuite/gdb.base/watchpoints.exp +++ b/gdb/testsuite/gdb.base/watchpoints.exp @@ -45,6 +45,11 @@ gdb_start gdb_reinitialize_dir $srcdir/$subdir gdb_load $binfile + # Disable hardware watchpoints if necessary. + if [target_info exists gdb,no_hardware_watchpoints] { + gdb_test "set can-use-hw-watchpoints 0" "" "" + } + runto_main gdb_test "watch ival1" "" "" gdb_test "watch ival3" "" "" |