[gdb/testsuite] Require istarget x86* in gdb.reverse/step-indirect-call-thunk.exp
authorTom de Vries <tdevries@suse.de>
Tue, 21 Feb 2023 14:06:50 +0000 (15:06 +0100)
committerTom de Vries <tdevries@suse.de>
Tue, 21 Feb 2023 14:06:50 +0000 (15:06 +0100)
On aarch64-linux, I run into:
...
Running gdb.reverse/step-indirect-call-thunk.exp ...
gdb compile failed, gcc: error: unrecognized command line option \
  '-mindirect-branch=thunk'; did you mean '-findirect-inlining'?
gcc: error: unrecognized command line option '-mfunction-return=thunk'; \
  did you mean '-Wfunction-elimination'?
UNTESTED: gdb.reverse/step-indirect-call-thunk.exp: failed to prepare
...

Fix this by requiring istarget "x86*", similar to what was added in
gdb.base/step-indirect-call-thunk.exp by commit 43127ae5714 ("Fix
gdb.base/step-indirect-call-thunk.exp"), such that we have instead:
...
UNSUPPORTED: gdb.reverse/step-indirect-call-thunk.exp: require failed: \
  istarget "x86*
...

Tested on x86_64-linux and aarch64-linux.

gdb/testsuite/gdb.reverse/step-indirect-call-thunk.exp

index 94292d5eb9bdc80118d505349370f33b53bdc790..f433efb11c2f3ae443c068cb3bab222ea5843205 100644 (file)
@@ -15,6 +15,8 @@
 
 require supports_reverse
 
+require {istarget "x86*"}
+
 standard_testfile
 
 set cflags {}