testsuite: Use istarget and is_lp64_target for 3 testcases.
authorJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 23 Jun 2014 06:24:36 +0000 (08:24 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Mon, 23 Jun 2014 06:24:36 +0000 (08:24 +0200)
On x86_64 with -m32 or on i686 it will:

Running ./gdb.arch/amd64-stap-special-operands.exp ...
gdb compile failed, amd64-stap-triplet.c: Assembler messages:
amd64-stap-triplet.c:35: Error: bad register name `%rbp'
amd64-stap-triplet.c:38: Error: bad register name `%rsp'
amd64-stap-triplet.c:40: Error: bad register name `%rbp)'
amd64-stap-triplet.c:41: Error: bad register name `%rsi'
amd64-stap-triplet.c:42: Error: bad register name `%rbp)'
/tmp/ccjOdmpl.s:63: Error: bad register name `%rbp'

2014-06-23  Jan Kratochvil  <jan.kratochvil@redhat.com>

* gdb.arch/amd64-stap-special-operands.exp: Use is_lp64_target.
* gdb.arch/amd64-stap-optional-prefix.exp: Likewise.
* gdb.dwarf2/dw2-error.exp: Use istarget and is_lp64_target.

Message-ID: <20140622211401.GA3716@host2.jankratochvil.net>

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.arch/amd64-stap-optional-prefix.exp
gdb/testsuite/gdb.arch/amd64-stap-special-operands.exp
gdb/testsuite/gdb.dwarf2/dw2-error.exp

index 1e7ef7f24601e95e7b91b8827e432751608bf151..93cd6f62944b1cfd98b647345e6166bd641f2911 100644 (file)
@@ -1,3 +1,9 @@
+2014-06-23  Jan Kratochvil  <jan.kratochvil@redhat.com>
+
+       * gdb.arch/amd64-stap-special-operands.exp: Use is_lp64_target.
+       * gdb.arch/amd64-stap-optional-prefix.exp: Likewise.
+       * gdb.dwarf2/dw2-error.exp: Use istarget and is_lp64_target.
+
 2014-06-20  Gary Benson  <gbenson@redhat.com>
 
        * gdb.arch/i386-avx.exp: Fix include file location.
index b7f150542546a255bd4a1f923b5501bb64f7edf2..10d3e70b4cfb5429c7202c32adb9fc092d2a5eb8 100644 (file)
@@ -17,7 +17,7 @@
 
 standard_testfile ".S"
 
-if { ![istarget "x86_64-*-*"] } {
+if { ![istarget "x86_64-*-*"] || ![is_lp64_target] } {
     verbose "Skipping $testfile.exp"
     return
 }
index a6ce7f56dca52274c8251378fb62acf71ede7af5..988b5d634c69d2d83493f6f8d8b2a4ace8621170 100644 (file)
@@ -13,7 +13,7 @@
 # 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 { ![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"] } {
+if { ![istarget "x86_64-*-*"] || ![is_lp64_target] } {
     verbose "Skipping amd64-stap-special-operands.exp"
     return
 }
index 65eac6dc29ff543fa586f7000fe9bace45198140..b6cd20593ce828070d55fed91552a75e71c0e3d0 100644 (file)
@@ -22,6 +22,11 @@ if {![dwarf2_support]} {
 
 standard_testfile .S
 
+if { ![istarget "x86_64-*-*"] || ![is_lp64_target] } {
+    verbose "Skipping $testfile.exp"
+    return
+}
+
 # We can't use prepare_for_testing here because we need to check the
 # 'file' command's output.
 if {[build_executable $testfile.exp $testfile $srcfile {nodebug}]} {