aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuis Machado <lgustavo@codesourcery.com>2014-07-02 11:59:02 +0100
committerLuis Machado <lgustavo@codesourcery.com>2014-07-02 11:59:02 +0100
commit2b239efbec446a0c213710b7c5258f2926ef78a4 (patch)
treea8bfc2a1b4fa164e86f1429332be2cedc5d4d52b
parentd1eca1e41ddae8c3cd925be827640de919301432 (diff)
downloadgdb-2b239efbec446a0c213710b7c5258f2926ef78a4.zip
gdb-2b239efbec446a0c213710b7c5258f2926ef78a4.tar.gz
gdb-2b239efbec446a0c213710b7c5258f2926ef78a4.tar.bz2
This testcase currently does not handle powerpc branches. It kinda
does in a way, because the arm/aarch64 branch instruction is the same as powerpc's, but the target triplet pattern is not there. In summary, the testcase fails to locate the branch offset and causes a failure and the early termination of the test. The following patch adds a separate conditional block for powerpc (to keep things organized), allowing the testcase to continue. 2014-07-02 Luis Machado <lgustavo@codesourcery.com> * gdb.trace/entry-values.exp: Handle powerpc-specific branch instruction.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.trace/entry-values.exp2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 90be171..af1dc66 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-07-02 Luis Machado <lgustavo@codesourcery.com>
+
+ * gdb.trace/entry-values.exp: Handle powerpc-specific branch
+ instruction.
+
2014-06-30 Mark Wielaard <mjw@redhat.com>
* gdb.base/constvars.c (violent, violet, vips, virgen, vulgar,
diff --git a/gdb/testsuite/gdb.trace/entry-values.exp b/gdb/testsuite/gdb.trace/entry-values.exp
index f10ffa6..d648bd1 100644
--- a/gdb/testsuite/gdb.trace/entry-values.exp
+++ b/gdb/testsuite/gdb.trace/entry-values.exp
@@ -79,6 +79,8 @@ if { [istarget "arm*-*-*"] || [istarget "aarch64*-*-*"] } {
set call_insn "bl"
} elseif { [istarget "s390*-*-*"] } {
set call_insn "brasl"
+} elseif { [istarget "powerpc*-*-*"] } {
+ set call_insn "bl"
} else {
set call_insn "call"
}