aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.trace/while-dyn.exp
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-09-08 17:40:54 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-09-08 17:40:54 +0000
commit7f062217672c13050f68eec1a6cd296d7b7f93be (patch)
treec9081719885b884389ec614fe781f137609dc481 /gdb/testsuite/gdb.trace/while-dyn.exp
parentbc587a6bd2e261d0a7645d0f5466379fe44f5f8b (diff)
downloadgdb-7f062217672c13050f68eec1a6cd296d7b7f93be.zip
gdb-7f062217672c13050f68eec1a6cd296d7b7f93be.tar.gz
gdb-7f062217672c13050f68eec1a6cd296d7b7f93be.tar.bz2
gdb/testsuite/
Fix compatibility with x32 arch. * testsuite/gdb.dwarf2/typeddwarf.exp: Check also is_lp64_target. * testsuite/gdb.trace/backtrace.exp: Use is_amd64_regs_target and is_x86_like_target. * testsuite/gdb.trace/collection.exp: Likewise. * testsuite/gdb.trace/report.exp: Likewise. * testsuite/gdb.trace/unavailable.exp: Likewise. * testsuite/gdb.trace/while-dyn.exp: Likewise. * testsuite/lib/gdb.exp (is_amd64_regs_target): New function. (is_x86_like_target): Check also is_amd64_regs_target.
Diffstat (limited to 'gdb/testsuite/gdb.trace/while-dyn.exp')
-rw-r--r--gdb/testsuite/gdb.trace/while-dyn.exp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.trace/while-dyn.exp b/gdb/testsuite/gdb.trace/while-dyn.exp
index 6227f23..58aa710 100644
--- a/gdb/testsuite/gdb.trace/while-dyn.exp
+++ b/gdb/testsuite/gdb.trace/while-dyn.exp
@@ -52,9 +52,9 @@ if { ![gdb_target_supports_trace] } then {
# test while-stepping dynamically (live target)
#
-if {([istarget "x86_64-*"] || [istarget "i?86-*"]) && [is_lp64_target]} then {
+if [is_amd64_regs_target] {
set fpreg "\$rbp"
-} elseif {[istarget "x86_64-*"] || [istarget "i?86-*"]} then {
+} elseif [is_x86_like_target] {
set fpreg "\$ebp"
} else {
set fpreg "\$fp"