summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace/collection.exp
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-08-26 09:20:44 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-08-26 09:20:44 +0000
commitbdb5404946bc009d72a4e3d3c1ed4c00b8215d89 (patch)
treecfc69f33cf24dfffa953bbcfad8352fcea8757a0 /gdb/testsuite/gdb.trace/collection.exp
parenta0dc6b134cacd7d77cd9a9e7aef2206ba1eb5b96 (diff)
downloadbinutils-gdb-bdb5404946bc009d72a4e3d3c1ed4c00b8215d89.tar.gz
gdb/testsuite/
* gdb.trace/backtrace.exp: Use is_lp64_target to check 64bit target. * gdb.trace/collection.exp: Likewise. * gdb.trace/report.exp: Likewise. * gdb.trace/unavailable.exp: Likewise. * gdb.trace/while-dyn.exp: Likewise.
Diffstat (limited to 'gdb/testsuite/gdb.trace/collection.exp')
-rw-r--r--gdb/testsuite/gdb.trace/collection.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.trace/collection.exp b/gdb/testsuite/gdb.trace/collection.exp
index c6f7fd1e6f8..4917ea847da 100644
--- a/gdb/testsuite/gdb.trace/collection.exp
+++ b/gdb/testsuite/gdb.trace/collection.exp
@@ -45,11 +45,11 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
set ws "\[\r\n\t \]+"
set cr "\[\r\n\]+"
-if [istarget "x86_64-*"] then {
+if {([istarget "x86_64-*"] || [istarget "i?86-*"]) && [is_lp64_target]} then {
set fpreg "rbp"
set spreg "rsp"
set pcreg "rip"
-} elseif [istarget "i?86-*"] then {
+} elseif {[istarget "x86_64-*"] || [istarget "i?86-*"]} then {
set fpreg "ebp"
set spreg "esp"
set pcreg "eip"