]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
gdb/testsuite/
authorJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 26 Aug 2011 09:20:44 +0000 (09:20 +0000)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Fri, 26 Aug 2011 09:20:44 +0000 (09:20 +0000)
* 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.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/backtrace.exp
gdb/testsuite/gdb.trace/collection.exp
gdb/testsuite/gdb.trace/report.exp
gdb/testsuite/gdb.trace/unavailable.exp
gdb/testsuite/gdb.trace/while-dyn.exp

index 13e4958841e986c9ad221d4e8207d2b2cc908d19..bb152a850f06e2490bdcd7882df71d68390f93cf 100644 (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>
 
        PR c++/12266
index 17b975901880acb10198285361a3c41b5bfbe140..9b72d491e52f135c2ba0df99b8afeb09a38abb15 100644 (file)
@@ -150,10 +150,10 @@ gdb_trace_setactions "8.6: setup TP to collect regs, args, and locals" \
        "$tdp4" \
        "collect \$regs, \$args, \$locs" "^$"
 
-if [istarget "x86_64-*"] then {
+if {([istarget "x86_64-*"] || [istarget "i?86-*"]) && [is_lp64_target]} then {
     set fpreg "\$rbp"
     set spreg "\$rsp"
-} elseif [istarget "i?86-*"] then {
+} elseif {[istarget "x86_64-*"] || [istarget "i?86-*"]} then {
     set fpreg "\$ebp"
     set spreg "\$esp"
 } else {
index c6f7fd1e6f817a84cd29262b355fbd7ae3f7bd88..4917ea847dabad9feedc0777dfc34659fcc986a9 100644 (file)
@@ -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"
index 7e929fff46f312e5bbf0841cb69dd282a25e26de..8bb678095c6694b2b9d2e8d400e5e3afda38bd19 100644 (file)
@@ -159,11 +159,11 @@ gdb_trace_setactions "9.x: setup TP to collect locals" \
        "$tdp4" \
        "collect \$locs" "^$"
 
-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"
index d10263f73da32962d34c728d001be72d6df4bbc6..fce65cacb3585241487bea7c0eb376fef1241c89 100644 (file)
@@ -30,11 +30,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"
@@ -295,12 +295,12 @@ proc gdb_unavailable_registers_test { } {
 
     # Test reading uncollected pseudo-registers.  The set of which
     # depends on target.
-    if [istarget "x86_64-*"] then {
+    if {$pcreg == "rip"} then {
        # Check the raw register first.
        test_register_unavailable "\$rax"
        test_register_unavailable "\$eax"
        test_register_unavailable "\$ax"
-    } elseif [istarget "i?86-*"] then {
+    } elseif {$pcreg == "eip"} then {
        # Check the raw register first.
        test_register_unavailable "\$eax"
        test_register_unavailable "\$ax"
index 1a88b61d4b3b58f5fb74a53f4dff5cfa08be802a..6227f23d9da77c8e2f404738e1f253dd69ead13b 100644 (file)
@@ -52,9 +52,9 @@ if { ![gdb_target_supports_trace] } then {
 # 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"
-} elseif [istarget "i?86-*"] then {
+} elseif {[istarget "x86_64-*"] || [istarget "i?86-*"]} then {
     set fpreg "\$ebp"
 } else {
     set fpreg "\$fp"