]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb.base/watchpoint-running.exp: Run sw watch tests even if no hw watch
authorPedro Alves <pedro@palves.net>
Tue, 7 May 2024 11:30:39 +0000 (12:30 +0100)
committerPedro Alves <pedro@palves.net>
Tue, 7 May 2024 12:10:21 +0000 (13:10 +0100)
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

gdb/testsuite/gdb.base/watchpoint-running.exp

index c75309e8f45547d11c9aa08dfe99d127eb448696..c3aae30ffba02af03caef932f71ed448f1e6b66c 100644 (file)
@@ -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} {