From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id DF7633858C39; Fri, 13 Jan 2023 20:35:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF7633858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1673642152; bh=AeJTIXBpspNdUjRPweNsZQObzXczsecZDgADA6F5bMo=; h=From:To:Subject:Date:From; b=pKeKLvi20BvxUdVDxlLPDgLuPpw93s4rwDI53lHTWgEuqzQivQQM8xdSZCTtSJrR3 gcb/XBeoMRrHNOTFnQM+mLdp/K5Pl62B/DYAHveDDfD4xk8n8WXbOze+gEtM/nLDYj 78XS9+u4d/6dTzZt+34+ZCDAPzw0ZY0FCmM8CDJc= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Tom Tromey To: gdb-cvs@sourceware.org Subject: [binutils-gdb] Use require support_displaced_stepping X-Act-Checkin: binutils-gdb X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 2a904240990618a9557c53676c843e22e3f15af4 X-Git-Newrev: 0a7043e0c55b54adca5ded9bc619c24e5ea1689b Message-Id: <20230113203552.DF7633858C39@sourceware.org> Date: Fri, 13 Jan 2023 20:35:52 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D0a7043e0c55b= 54adca5ded9bc619c24e5ea1689b commit 0a7043e0c55b54adca5ded9bc619c24e5ea1689b Author: Tom Tromey Date: Wed Dec 14 09:45:31 2022 -0700 Use require support_displaced_stepping =20 This changes some tests to use "require support_displaced_stepping". Diff: --- gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp | 5 +---- gdb/testsuite/gdb.base/async-shell.exp | 5 +---- gdb/testsuite/gdb.base/inferior-died.exp | 5 +---- gdb/testsuite/gdb.base/moribund-step.exp | 5 +---- gdb/testsuite/gdb.mi/mi-nonstop-exit.exp | 5 +---- gdb/testsuite/gdb.mi/mi-nonstop.exp | 5 +---- gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp | 5 +---- gdb/testsuite/gdb.mi/mi-nsintrall.exp | 5 +---- gdb/testsuite/gdb.mi/mi-nsmoribund.exp | 5 +---- gdb/testsuite/gdb.mi/mi-nsthrexec.exp | 5 +---- gdb/testsuite/gdb.mi/mi-watch-nonstop.exp | 7 +------ gdb/testsuite/gdb.python/py-evthreads.exp | 5 +---- 12 files changed, 12 insertions(+), 50 deletions(-) diff --git a/gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp b/gdb/testsuit= e/gdb.arch/disp-step-insn-reloc.exp index 7ec4f301c18..1a1adf17961 100644 --- a/gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp +++ b/gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp @@ -16,10 +16,7 @@ standard_testfile insn-reloc.c set executable $testfile set expfile $testfile.exp =20 -if { ![support_displaced_stepping] } { - unsupported "displaced stepping" - return -1 -} +require support_displaced_stepping =20 # Some targets have leading underscores on assembly symbols. set additional_flags [gdb_target_symbol_prefix_flags] diff --git a/gdb/testsuite/gdb.base/async-shell.exp b/gdb/testsuite/gdb.bas= e/async-shell.exp index ba1efacafae..e79fe143455 100644 --- a/gdb/testsuite/gdb.base/async-shell.exp +++ b/gdb/testsuite/gdb.base/async-shell.exp @@ -15,10 +15,7 @@ =20 standard_testfile =20 -if { ![support_displaced_stepping] } {=20 - unsupported "displaced stepping" - return -1 -} +require support_displaced_stepping =20 # The testfile uses "run". The real bug happened only for ![is_remote tar= get]. if [use_gdb_stub] { diff --git a/gdb/testsuite/gdb.base/inferior-died.exp b/gdb/testsuite/gdb.b= ase/inferior-died.exp index 84aefee0645..4a72e8da98b 100644 --- a/gdb/testsuite/gdb.base/inferior-died.exp +++ b/gdb/testsuite/gdb.base/inferior-died.exp @@ -21,10 +21,7 @@ if {![istarget "*-*-linux*"]} { return } =20 -if { ![support_displaced_stepping] } { - unsupported "inferior-died.exp" - return -1 -} +require support_displaced_stepping =20 standard_testfile .c =20 diff --git a/gdb/testsuite/gdb.base/moribund-step.exp b/gdb/testsuite/gdb.b= ase/moribund-step.exp index 509115cbcc0..d052df72425 100644 --- a/gdb/testsuite/gdb.base/moribund-step.exp +++ b/gdb/testsuite/gdb.base/moribund-step.exp @@ -15,10 +15,7 @@ =20 standard_testfile start.c =20 -if { ![support_displaced_stepping] } { - unsupported "displaced stepping" - return -1 -} +require support_displaced_stepping =20 save_vars { GDBFLAGS } { set GDBFLAGS "$GDBFLAGS -ex \"set non-stop on\"" diff --git a/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp b/gdb/testsuite/gdb.m= i/mi-nonstop-exit.exp index 9301f0f2173..0c64ee18320 100644 --- a/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp +++ b/gdb/testsuite/gdb.mi/mi-nonstop-exit.exp @@ -13,10 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -if { ![support_displaced_stepping] } {=20 - unsupported "displaced stepping" - return -1 -} +require support_displaced_stepping =20 load_lib mi-support.exp set MIFLAGS "-i=3Dmi" diff --git a/gdb/testsuite/gdb.mi/mi-nonstop.exp b/gdb/testsuite/gdb.mi/mi-= nonstop.exp index 8fa60037e4f..84ba40a4448 100644 --- a/gdb/testsuite/gdb.mi/mi-nonstop.exp +++ b/gdb/testsuite/gdb.mi/mi-nonstop.exp @@ -14,10 +14,7 @@ # along with this program. If not, see . =20 =20 -if { ![support_displaced_stepping] } {=20 - unsupported "displaced stepping" - return -1 -} +require support_displaced_stepping =20 load_lib mi-support.exp set MIFLAGS "-i=3Dmi" diff --git a/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp b/gdb/testsuite/= gdb.mi/mi-ns-stale-regcache.exp index 1bb759a4595..47429d6930c 100644 --- a/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp +++ b/gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp @@ -16,10 +16,7 @@ # Regression test for PR11557. Make sure we don't end up with a stale # register cache just after resuming a thread. =20 -if { ![support_displaced_stepping] } {=20 - unsupported "displaced stepping" - return -1 -} +require support_displaced_stepping =20 load_lib mi-support.exp set MIFLAGS "-i=3Dmi" diff --git a/gdb/testsuite/gdb.mi/mi-nsintrall.exp b/gdb/testsuite/gdb.mi/m= i-nsintrall.exp index 7fefd791c58..98607fc2129 100644 --- a/gdb/testsuite/gdb.mi/mi-nsintrall.exp +++ b/gdb/testsuite/gdb.mi/mi-nsintrall.exp @@ -13,10 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -if { ![support_displaced_stepping] } {=20 - unsupported "displaced stepping" - return -1 -} +require support_displaced_stepping =20 load_lib mi-support.exp set MIFLAGS "-i=3Dmi" diff --git a/gdb/testsuite/gdb.mi/mi-nsmoribund.exp b/gdb/testsuite/gdb.mi/= mi-nsmoribund.exp index 6b02a544e6a..103aa45d7e1 100644 --- a/gdb/testsuite/gdb.mi/mi-nsmoribund.exp +++ b/gdb/testsuite/gdb.mi/mi-nsmoribund.exp @@ -13,10 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -if { ![support_displaced_stepping] } {=20 - unsupported "displaced stepping" - return -1 -} +require support_displaced_stepping =20 load_lib mi-support.exp set MIFLAGS "-i=3Dmi" diff --git a/gdb/testsuite/gdb.mi/mi-nsthrexec.exp b/gdb/testsuite/gdb.mi/m= i-nsthrexec.exp index 6f3b2773187..a6ce493ce8d 100644 --- a/gdb/testsuite/gdb.mi/mi-nsthrexec.exp +++ b/gdb/testsuite/gdb.mi/mi-nsthrexec.exp @@ -18,10 +18,7 @@ # the main thread doesn't just silently stop at the first internal # breakpoint (usually the _dl_debug_state breakpoint). =20 -if { ![support_displaced_stepping] } {=20 - unsupported "displaced stepping" - return -1 -} +require support_displaced_stepping =20 load_lib mi-support.exp set MIFLAGS "-i=3Dmi" diff --git a/gdb/testsuite/gdb.mi/mi-watch-nonstop.exp b/gdb/testsuite/gdb.= mi/mi-watch-nonstop.exp index 515454456b2..b3dc7b772e4 100644 --- a/gdb/testsuite/gdb.mi/mi-watch-nonstop.exp +++ b/gdb/testsuite/gdb.mi/mi-watch-nonstop.exp @@ -13,12 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -require !skip_hw_watchpoint_tests - -if { ![support_displaced_stepping] } {=20 - unsupported "displaced stepping" - return -1 -} +require !skip_hw_watchpoint_tests support_displaced_stepping =20 load_lib mi-support.exp set MIFLAGS "-i=3Dmi" diff --git a/gdb/testsuite/gdb.python/py-evthreads.exp b/gdb/testsuite/gdb.= python/py-evthreads.exp index c9afbb7cdb8..fde5501b1db 100644 --- a/gdb/testsuite/gdb.python/py-evthreads.exp +++ b/gdb/testsuite/gdb.python/py-evthreads.exp @@ -13,10 +13,7 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . =20 -if { ![support_displaced_stepping] } {=20 - unsupported "displaced stepping" - return -1 -} +require support_displaced_stepping =20 load_lib gdb-python.exp