diff options
author | Tom Tromey <tom@tromey.com> | 2023-02-22 14:50:27 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2023-03-10 08:21:46 -0700 |
commit | 24d59b55a8a7405a46e99ed19fa871ba3c390aec (patch) | |
tree | 243c3ceb9b4d6c6316936262ac73cb12490ebd0c | |
parent | b8d7ef3f67a3022c06408f730d3a15a0e6d49a01 (diff) | |
download | gdb-24d59b55a8a7405a46e99ed19fa871ba3c390aec.zip gdb-24d59b55a8a7405a46e99ed19fa871ba3c390aec.tar.gz gdb-24d59b55a8a7405a46e99ed19fa871ba3c390aec.tar.bz2 |
More uses of require with istarget
I found a few more spots that check istarget that can be switched to
use 'require'.
-rw-r--r-- | gdb/testsuite/gdb.base/checkpoint.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/foll-exec-mode.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/foll-exec.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/inferior-died.exp | 5 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/jit-reader-exec.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/multi-forks.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/pie-execl.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.base/step-indirect-call-thunk.exp | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.threads/check-libthread-db.exp | 3 |
9 files changed, 10 insertions, 26 deletions
diff --git a/gdb/testsuite/gdb.base/checkpoint.exp b/gdb/testsuite/gdb.base/checkpoint.exp index 189a240..a4ea943 100644 --- a/gdb/testsuite/gdb.base/checkpoint.exp +++ b/gdb/testsuite/gdb.base/checkpoint.exp @@ -16,9 +16,7 @@ # Until "set follow-fork-mode" and "catch fork" are implemented on # other targets... # -if {![istarget "*-*-linux*"]} { - return -} +require {istarget "*-*-linux*"} # Checkpoint support is currently implemented in the Linux native # target, so only works with "target native". diff --git a/gdb/testsuite/gdb.base/foll-exec-mode.exp b/gdb/testsuite/gdb.base/foll-exec-mode.exp index 0846441..cdfded5 100644 --- a/gdb/testsuite/gdb.base/foll-exec-mode.exp +++ b/gdb/testsuite/gdb.base/foll-exec-mode.exp @@ -35,9 +35,7 @@ if { [target_info exists gdb_protocol] # Until "catch exec" is implemented on other targets... # -if {![istarget "*-linux*"]} { - return -} +require {istarget "*-linux*"} standard_testfile foll-exec-mode.c diff --git a/gdb/testsuite/gdb.base/foll-exec.exp b/gdb/testsuite/gdb.base/foll-exec.exp index 0092fcc..8da3e5f 100644 --- a/gdb/testsuite/gdb.base/foll-exec.exp +++ b/gdb/testsuite/gdb.base/foll-exec.exp @@ -18,9 +18,7 @@ # Until "catch exec" is implemented on other targets... # -if {![istarget "*-linux*"]} { - return -} +require {istarget "*-linux*"} standard_testfile foll-exec.c diff --git a/gdb/testsuite/gdb.base/inferior-died.exp b/gdb/testsuite/gdb.base/inferior-died.exp index 4a72e8d..7717b2f 100644 --- a/gdb/testsuite/gdb.base/inferior-died.exp +++ b/gdb/testsuite/gdb.base/inferior-died.exp @@ -16,10 +16,7 @@ # Until "set follow-fork-mode" and "catch fork" are implemented on # other targets... # -if {![istarget "*-*-linux*"]} { - unsupported "inferior-died.exp" - return -} +require {istarget "*-*-linux*"} require support_displaced_stepping diff --git a/gdb/testsuite/gdb.base/jit-reader-exec.exp b/gdb/testsuite/gdb.base/jit-reader-exec.exp index d100944..ef28ba4 100644 --- a/gdb/testsuite/gdb.base/jit-reader-exec.exp +++ b/gdb/testsuite/gdb.base/jit-reader-exec.exp @@ -17,9 +17,7 @@ # inferior that used the JIT API then exec'd a program that did not # use it. -if {![istarget "*-linux*"]} { - return -} +require {istarget "*-linux*"} standard_testfile jit-reader-exec.c diff --git a/gdb/testsuite/gdb.base/multi-forks.exp b/gdb/testsuite/gdb.base/multi-forks.exp index 542d36e..02dd327 100644 --- a/gdb/testsuite/gdb.base/multi-forks.exp +++ b/gdb/testsuite/gdb.base/multi-forks.exp @@ -16,9 +16,7 @@ # Until "set follow-fork-mode" and "catch fork" are implemented on # other targets... # -if {![istarget "*-*-linux*"]} { - return -} +require {istarget "*-*-linux*"} standard_testfile .c diff --git a/gdb/testsuite/gdb.base/pie-execl.exp b/gdb/testsuite/gdb.base/pie-execl.exp index d47fd51..156deef 100644 --- a/gdb/testsuite/gdb.base/pie-execl.exp +++ b/gdb/testsuite/gdb.base/pie-execl.exp @@ -19,9 +19,7 @@ global inferior_spawn_id global gdb_spawn_id -if ![istarget *-linux*] { - return -} +require {istarget *-linux*} # In remote mode we cannot use the 'set args' command, and this # test requires it. diff --git a/gdb/testsuite/gdb.base/step-indirect-call-thunk.exp b/gdb/testsuite/gdb.base/step-indirect-call-thunk.exp index 94da7e7..b51257c 100644 --- a/gdb/testsuite/gdb.base/step-indirect-call-thunk.exp +++ b/gdb/testsuite/gdb.base/step-indirect-call-thunk.exp @@ -15,9 +15,7 @@ standard_testfile -if { ![istarget "x86*"] } { - return -} +require {istarget "x86*"} set cflags "-mindirect-branch=thunk -mfunction-return=thunk" diff --git a/gdb/testsuite/gdb.threads/check-libthread-db.exp b/gdb/testsuite/gdb.threads/check-libthread-db.exp index 2324b7f..051c232 100644 --- a/gdb/testsuite/gdb.threads/check-libthread-db.exp +++ b/gdb/testsuite/gdb.threads/check-libthread-db.exp @@ -14,9 +14,10 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. # This test only works for native processes on GNU/Linux. -if {[target_info gdb_protocol] != "" || ![istarget *-linux*]} { +if {[target_info gdb_protocol] != ""} { return } +require {istarget *-linux*} # Test relies on checking gdb debug output. Do not run if gdb debug is # enabled as any debug will be redirected to the log. |