diff options
author | Pedro Alves <pedro@palves.net> | 2024-05-07 12:30:39 +0100 |
---|---|---|
committer | Pedro Alves <pedro@palves.net> | 2024-05-07 13:10:21 +0100 |
commit | 810203888dab0dc737a681c872dab4664eae0db9 (patch) | |
tree | d2f2c8692838f447ade5c491ae9193507df0cbdc | |
parent | 1d2db4525cf2a012f736970d13e104b2434b8741 (diff) | |
download | binutils-810203888dab0dc737a681c872dab4664eae0db9.zip binutils-810203888dab0dc737a681c872dab4664eae0db9.tar.gz binutils-810203888dab0dc737a681c872dab4664eae0db9.tar.bz2 |
gdb.base/watchpoint-running.exp: Run sw watch tests even if no hw watch
The code in gdb.base/watchpoint-running.exp that is trying to skip
testing with hardware watchpoints also skips testing with software
watchpoints if hardware watchpoints aren't supported by the target.
This fixes it.
Change-Id: Iaed62ac827b32b4fd73b732ad81fa4a5aa5784ba
-rw-r--r-- | gdb/testsuite/gdb.base/watchpoint-running.exp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/watchpoint-running.exp b/gdb/testsuite/gdb.base/watchpoint-running.exp index c75309e..c3aae30 100644 --- a/gdb/testsuite/gdb.base/watchpoint-running.exp +++ b/gdb/testsuite/gdb.base/watchpoint-running.exp @@ -125,7 +125,7 @@ proc test {stop_mode hw} { } foreach hw {0 1} { - if {!$allow_hw_watchpoint_tests_p} { + if {$hw && !$allow_hw_watchpoint_tests_p} { continue } foreach stop_mode {all-stop non-stop} { |