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.
This commit is contained in:
Jan Kratochvil 2011-08-26 09:20:44 +00:00
parent a0dc6b134c
commit bdb5404946
6 changed files with 20 additions and 12 deletions

View file

@ -1,3 +1,11 @@
2011-08-26 Jan Kratochvil <jan.kratochvil@redhat.com>
* 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.
2011-08-18 Keith Seitz <keiths@redhat.com> 2011-08-18 Keith Seitz <keiths@redhat.com>
PR c++/12266 PR c++/12266

View file

@ -150,10 +150,10 @@ gdb_trace_setactions "8.6: setup TP to collect regs, args, and locals" \
"$tdp4" \ "$tdp4" \
"collect \$regs, \$args, \$locs" "^$" "collect \$regs, \$args, \$locs" "^$"
if [istarget "x86_64-*"] then { if {([istarget "x86_64-*"] || [istarget "i?86-*"]) && [is_lp64_target]} then {
set fpreg "\$rbp" set fpreg "\$rbp"
set spreg "\$rsp" set spreg "\$rsp"
} elseif [istarget "i?86-*"] then { } elseif {[istarget "x86_64-*"] || [istarget "i?86-*"]} then {
set fpreg "\$ebp" set fpreg "\$ebp"
set spreg "\$esp" set spreg "\$esp"
} else { } else {

View file

@ -45,11 +45,11 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
set ws "\[\r\n\t \]+" set ws "\[\r\n\t \]+"
set cr "\[\r\n\]+" set cr "\[\r\n\]+"
if [istarget "x86_64-*"] then { if {([istarget "x86_64-*"] || [istarget "i?86-*"]) && [is_lp64_target]} then {
set fpreg "rbp" set fpreg "rbp"
set spreg "rsp" set spreg "rsp"
set pcreg "rip" set pcreg "rip"
} elseif [istarget "i?86-*"] then { } elseif {[istarget "x86_64-*"] || [istarget "i?86-*"]} then {
set fpreg "ebp" set fpreg "ebp"
set spreg "esp" set spreg "esp"
set pcreg "eip" set pcreg "eip"

View file

@ -159,11 +159,11 @@ gdb_trace_setactions "9.x: setup TP to collect locals" \
"$tdp4" \ "$tdp4" \
"collect \$locs" "^$" "collect \$locs" "^$"
if [istarget "x86_64-*"] then { if {([istarget "x86_64-*"] || [istarget "i?86-*"]) && [is_lp64_target]} then {
set fpreg "rbp" set fpreg "rbp"
set spreg "rsp" set spreg "rsp"
set pcreg "rip" set pcreg "rip"
} elseif [istarget "i?86-*"] then { } elseif {[istarget "x86_64-*"] || [istarget "i?86-*"]} then {
set fpreg "ebp" set fpreg "ebp"
set spreg "esp" set spreg "esp"
set pcreg "eip" set pcreg "eip"

View file

@ -30,11 +30,11 @@ if { [gdb_compile "$srcdir/$subdir/$srcfile" $binfile \
set ws "\[\r\n\t \]+" set ws "\[\r\n\t \]+"
set cr "\[\r\n\]+" set cr "\[\r\n\]+"
if [istarget "x86_64-*"] then { if {([istarget "x86_64-*"] || [istarget "i?86-*"]) && [is_lp64_target]} then {
set fpreg "rbp" set fpreg "rbp"
set spreg "rsp" set spreg "rsp"
set pcreg "rip" set pcreg "rip"
} elseif [istarget "i?86-*"] then { } elseif {[istarget "x86_64-*"] || [istarget "i?86-*"]} then {
set fpreg "ebp" set fpreg "ebp"
set spreg "esp" set spreg "esp"
set pcreg "eip" set pcreg "eip"
@ -295,12 +295,12 @@ proc gdb_unavailable_registers_test { } {
# Test reading uncollected pseudo-registers. The set of which # Test reading uncollected pseudo-registers. The set of which
# depends on target. # depends on target.
if [istarget "x86_64-*"] then { if {$pcreg == "rip"} then {
# Check the raw register first. # Check the raw register first.
test_register_unavailable "\$rax" test_register_unavailable "\$rax"
test_register_unavailable "\$eax" test_register_unavailable "\$eax"
test_register_unavailable "\$ax" test_register_unavailable "\$ax"
} elseif [istarget "i?86-*"] then { } elseif {$pcreg == "eip"} then {
# Check the raw register first. # Check the raw register first.
test_register_unavailable "\$eax" test_register_unavailable "\$eax"
test_register_unavailable "\$ax" test_register_unavailable "\$ax"

View file

@ -52,9 +52,9 @@ if { ![gdb_target_supports_trace] } then {
# test while-stepping dynamically (live target) # test while-stepping dynamically (live target)
# #
if [istarget "x86_64-*"] then { if {([istarget "x86_64-*"] || [istarget "i?86-*"]) && [is_lp64_target]} then {
set fpreg "\$rbp" set fpreg "\$rbp"
} elseif [istarget "i?86-*"] then { } elseif {[istarget "x86_64-*"] || [istarget "i?86-*"]} then {
set fpreg "\$ebp" set fpreg "\$ebp"
} else { } else {
set fpreg "\$fp" set fpreg "\$fp"