public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] gdb.base/watchpoint-running.exp: Run sw watch tests even if no hw watch
@ 2024-05-07 12:11 Pedro Alves
0 siblings, 0 replies; only message in thread
From: Pedro Alves @ 2024-05-07 12:11 UTC (permalink / raw)
To: gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=810203888dab0dc737a681c872dab4664eae0db9
commit 810203888dab0dc737a681c872dab4664eae0db9
Author: Pedro Alves <pedro@palves.net>
Date: Tue May 7 12:30:39 2024 +0100
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
Diff:
---
gdb/testsuite/gdb.base/watchpoint-running.exp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gdb/testsuite/gdb.base/watchpoint-running.exp b/gdb/testsuite/gdb.base/watchpoint-running.exp
index c75309e8f45..c3aae30ffba 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} {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-05-07 12:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-05-07 12:11 [binutils-gdb] gdb.base/watchpoint-running.exp: Run sw watch tests even if no hw watch Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).