Use require support_displaced_stepping
authorTom Tromey <tom@tromey.com>
Wed, 14 Dec 2022 16:45:31 +0000 (09:45 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 13 Jan 2023 20:18:55 +0000 (13:18 -0700)
This changes some tests to use "require support_displaced_stepping".

12 files changed:
gdb/testsuite/gdb.arch/disp-step-insn-reloc.exp
gdb/testsuite/gdb.base/async-shell.exp
gdb/testsuite/gdb.base/inferior-died.exp
gdb/testsuite/gdb.base/moribund-step.exp
gdb/testsuite/gdb.mi/mi-nonstop-exit.exp
gdb/testsuite/gdb.mi/mi-nonstop.exp
gdb/testsuite/gdb.mi/mi-ns-stale-regcache.exp
gdb/testsuite/gdb.mi/mi-nsintrall.exp
gdb/testsuite/gdb.mi/mi-nsmoribund.exp
gdb/testsuite/gdb.mi/mi-nsthrexec.exp
gdb/testsuite/gdb.mi/mi-watch-nonstop.exp
gdb/testsuite/gdb.python/py-evthreads.exp

index 7ec4f301c189a9c29a22f6e1c5750d3aa1316f13..1a1adf1796172bae2b5820175e1dce751c9908e5 100644 (file)
@@ -16,10 +16,7 @@ standard_testfile insn-reloc.c
 set executable $testfile
 set expfile $testfile.exp
 
-if { ![support_displaced_stepping] } {
-    unsupported "displaced stepping"
-    return -1
-}
+require support_displaced_stepping
 
 # Some targets have leading underscores on assembly symbols.
 set additional_flags [gdb_target_symbol_prefix_flags]
index ba1efacafaeee3a589359a9b67076c0b3ea90d48..e79fe1434553c973f28620d8017c2bbf3f160644 100644 (file)
 
 standard_testfile
 
-if { ![support_displaced_stepping] } { 
-    unsupported "displaced stepping"
-    return -1
-}
+require support_displaced_stepping
 
 # The testfile uses "run".  The real bug happened only for ![is_remote target].
 if [use_gdb_stub] {
index 84aefee0645c7776c8f7e5c2da79d35561d781fa..4a72e8da98ba690119dcac844bd15653e7e1a978 100644 (file)
@@ -21,10 +21,7 @@ if {![istarget "*-*-linux*"]} {
     return
 }
 
-if { ![support_displaced_stepping] } {
-    unsupported "inferior-died.exp"
-    return -1
-}
+require support_displaced_stepping
 
 standard_testfile .c
 
index 509115cbcc0121b67a4b755adeee678ebafd6859..d052df724257997beefe75d1aa5ee660569b388c 100644 (file)
 
 standard_testfile start.c
 
-if { ![support_displaced_stepping] } {
-    unsupported "displaced stepping"
-    return -1
-}
+require support_displaced_stepping
 
 save_vars { GDBFLAGS } {
     set GDBFLAGS "$GDBFLAGS -ex \"set non-stop on\""
index 9301f0f2173da7f2bd2705870a48e5403ed8baa6..0c64ee183205ceddb3a2181c37f1e5e885b695df 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if { ![support_displaced_stepping] } { 
-    unsupported "displaced stepping"
-    return -1
-}
+require support_displaced_stepping
 
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
index 8fa60037e4f11a0f95b3f24fd0c308024be2a134..84ba40a444837581fb1123cb069fe2a97f10ee1f 100644 (file)
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 
-if { ![support_displaced_stepping] } { 
-    unsupported "displaced stepping"
-    return -1
-}
+require support_displaced_stepping
 
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
index 1bb759a459551f7b8237f32d5ff7be4b5a3af8d7..47429d6930c78b94b026db757db558f32bcaf734 100644 (file)
 # Regression test for PR11557.  Make sure we don't end up with a stale
 # register cache just after resuming a thread.
 
-if { ![support_displaced_stepping] } { 
-    unsupported "displaced stepping"
-    return -1
-}
+require support_displaced_stepping
 
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
index 7fefd791c5830a165220ca119324aad5dc2d0944..98607fc212972e58315e46796b90c10d4cf67f76 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if { ![support_displaced_stepping] } { 
-    unsupported "displaced stepping"
-    return -1
-}
+require support_displaced_stepping
 
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
index 6b02a544e6a7e594257b128d5ced2226517d1942..103aa45d7e1d40136674e2c00ace86aa02f38271 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if { ![support_displaced_stepping] } { 
-    unsupported "displaced stepping"
-    return -1
-}
+require support_displaced_stepping
 
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
index 6f3b27731876f941b65511afe5a46f4a0c4a0fac..a6ce493ce8d0a640d101b61f75f2858d8df1c5cb 100644 (file)
 # the main thread doesn't just silently stop at the first internal
 # breakpoint (usually the _dl_debug_state breakpoint).
 
-if { ![support_displaced_stepping] } { 
-    unsupported "displaced stepping"
-    return -1
-}
+require support_displaced_stepping
 
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
index 515454456b27e19bf9bce53d318fc6cc90ce6c11..b3dc7b772e46d3a2ba1155afa10270a9fbd41a13 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-require !skip_hw_watchpoint_tests
-
-if { ![support_displaced_stepping] } { 
-    unsupported "displaced stepping"
-    return -1
-}
+require !skip_hw_watchpoint_tests support_displaced_stepping
 
 load_lib mi-support.exp
 set MIFLAGS "-i=mi"
index c9afbb7cdb8b8a386cac2a8ad259fdb039e773db..fde5501b1db9035396abe1eb9015579f861f0627 100644 (file)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
-if { ![support_displaced_stepping] } { 
-    unsupported "displaced stepping"
-    return -1
-}
+require support_displaced_stepping
 
 load_lib gdb-python.exp