aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.arch/i386-byte.exp
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-07-12 17:33:15 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-07-12 17:33:15 +0000
commitadd265ae415ecd40208537d1f84155f868668ef5 (patch)
tree5a6c5c581d651b42b9416e2c2eaf149b80bb7ffd /gdb/testsuite/gdb.arch/i386-byte.exp
parent953ac07ed78d7fa016fe4ef551afc513700aa393 (diff)
downloadbinutils-add265ae415ecd40208537d1f84155f868668ef5.zip
binutils-add265ae415ecd40208537d1f84155f868668ef5.tar.gz
binutils-add265ae415ecd40208537d1f84155f868668ef5.tar.bz2
Add is_ilp32_target/is_lp64_target.
2010-07-12 Ulrich Weigand <uweigand@de.ibm.com> H.J. Lu <hongjiu.lu@intel.com> * lib/gdb.exp (is_ilp32_target): New. (is_lp64_target): Likewise. * gdb.arch/amd64-byte.exp: Use is_lp64_target to check 64bit target. * gdb.arch/amd64-disp-step.exp: Likewise. * gdb.arch/amd64-dword.exp: Likewise. * gdb.arch/amd64-i386-address.exp: Likewise. * gdb.arch/amd64-word.exp: Likewise. * gdb.arch/i386-avx.exp: Use is_ilp32_target to check for 32bit target. * gdb.arch/i386-bp_permanent.exp: Likewise. * gdb.arch/i386-byte.exp: Likewise. * gdb.arch/i386-disp-step.exp: Likewise. * gdb.arch/i386-gnu-cfi.exp: Likewise. * gdb.arch/i386-prologue.exp: Likewise. * gdb.arch/i386-size-overlap.exp: Likewise. * gdb.arch/i386-size.exp: Likewise. * gdb.arch/i386-sse.exp: Likewise. * gdb.arch/i386-unwind.exp: Likewise. * gdb.arch/i386-word.exp: Likewise. * gdb.arch/ppc64-atomic-inst.exp: Use is_lp64_target to execute test only when building 64-bit executables. Do not hard-code -m64 option.
Diffstat (limited to 'gdb/testsuite/gdb.arch/i386-byte.exp')
-rw-r--r--gdb/testsuite/gdb.arch/i386-byte.exp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.arch/i386-byte.exp b/gdb/testsuite/gdb.arch/i386-byte.exp
index d4dd5a5..4a17ed0 100644
--- a/gdb/testsuite/gdb.arch/i386-byte.exp
+++ b/gdb/testsuite/gdb.arch/i386-byte.exp
@@ -23,7 +23,7 @@ if $tracelevel {
}
-if { ![istarget i?86-*-*] } {
+if {(![istarget "x86_64-*-*"] && ![istarget "i?86-*-*"]) || ![is_ilp32_target] } then {
verbose "Skipping i386 byte register tests."
return
}