From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1551) id B43F4384AB74; Tue, 7 May 2024 12:11:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B43F4384AB74 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1715083862; bh=+iuYUVrPvaCify/WM6M0cxwQTBmeaKyTtxmmLJ46WqY=; h=From:To:Subject:Date:From; b=YokSNYmWiM+/Ek4BBlF0Oa4ciKwWDHQSwxRq1cG7F/OVvcK5/qEOrcsA+1RjnWkAK p01GrFP+5bcTPr9u/n+DiAmwFUjzu/ljE1cDBZWkvL9X1yisoX3RLpbZ7AQM/ti72g 1N75rrKhxF4ksCyXXGZU9iM4bGA8qzGHs1mmXc7E= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Pedro Alves To: gdb-cvs@sourceware.org Subject: [binutils-gdb] gdb.base/watchpoint-running.exp: Run sw watch tests even if no hw watch X-Act-Checkin: binutils-gdb X-Git-Author: Pedro Alves X-Git-Refname: refs/heads/master X-Git-Oldrev: 1d2db4525cf2a012f736970d13e104b2434b8741 X-Git-Newrev: 810203888dab0dc737a681c872dab4664eae0db9 Message-Id: <20240507121102.B43F4384AB74@sourceware.org> Date: Tue, 7 May 2024 12:11:02 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D810203888dab= 0dc737a681c872dab4664eae0db9 commit 810203888dab0dc737a681c872dab4664eae0db9 Author: Pedro Alves Date: Tue May 7 12:30:39 2024 +0100 gdb.base/watchpoint-running.exp: Run sw watch tests even if no hw watch =20 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. =20 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} { } =20 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} {