public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Pedro Alves <palves@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb.base/watchpoint-running.exp: Run sw watch tests even if no hw watch Date: Tue, 7 May 2024 12:11:02 +0000 (GMT) [thread overview] Message-ID: <20240507121102.B43F4384AB74@sourceware.org> (raw) 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} {
reply other threads:[~2024-05-07 12:11 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20240507121102.B43F4384AB74@sourceware.org \ --to=palves@sourceware.org \ --cc=gdb-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).