gdb/testsuite: only run gdb.arch/i386-biarch-core.exp on suitable targets
authorAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 4 Feb 2021 20:36:30 +0000 (20:36 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 18 Feb 2021 10:43:10 +0000 (10:43 +0000)
Restrict the test gdb.arch/i386-biarch-core.exp to only run on
suitable targets.

gdb/testsuite/ChangeLog:

* gdb.arch/i386-biarch-core.exp: Add target check.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/i386-biarch-core.exp

index f3002b239704ed646a7d8974279605c92c306ff2..70b836b8c2f408312c740572f1bf36302e55faf2 100644 (file)
@@ -1,3 +1,7 @@
+2021-02-18  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * gdb.arch/i386-biarch-core.exp: Add target check.
+
 2021-02-16  Alok Kumar Sharma  <AlokKumar.Sharma@amd.com>
 
        * gdb.dwarf2/pr13961.S: Corrected invalid DIE references.
index 4e6f3964edd1b398ffce05c24310339254f2f964..22ccdc894e2cd8baacf6d07ddf45e292d2c709b9 100644 (file)
 # #define EM_X86_64       62              /* AMD x86-64 architecture */
 # patch @0x12: 0x3E -> 0x03
 
+if { ![istarget "i?86-*-*"] && ![istarget "x86_64-*-*"] } then {
+    verbose "Skipping i386 biarch core test."
+    return
+}
+
 standard_testfile
 
 gdb_exit