aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2015-12-15 16:09:41 +0000
committerYao Qi <yao.qi@linaro.org>2015-12-15 16:09:41 +0000
commita22279dd83da7a0dd2b496c92dc2522427f74e37 (patch)
tree6f7c526990efe8a11dcdd5bffebe32041a339f13 /gdb/testsuite
parent270f824531ceef276616a5d2f3027fa9f537c10b (diff)
downloadgdb-a22279dd83da7a0dd2b496c92dc2522427f74e37.zip
gdb-a22279dd83da7a0dd2b496c92dc2522427f74e37.tar.gz
gdb-a22279dd83da7a0dd2b496c92dc2522427f74e37.tar.bz2
Tweak gdb.trace/ftrace.exp for aarch64
Some tests are skipped on aarch64 unexpectedly because arg0exp isn't set. This patch is to set arg0exp to "$x0" for aarch64. gdb/testsuite: 2015-12-15 Yao Qi <yao.qi@linaro.org> * gdb.trace/ftrace.exp: Set arg0exp to "$x0" if target is aarch64*-*-*.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.trace/ftrace.exp2
2 files changed, 7 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 56c3c47..57c6ccd 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2015-12-15 Yao Qi <yao.qi@linaro.org>
+
+ * gdb.trace/ftrace.exp: Set arg0exp to "$x0" if target
+ is aarch64*-*-*.
+
2015-12-14 Sandra Loosemore <sandra@codesourcery.com>
* gdb.base/history-duplicates.exp: Skip if no readline support.
diff --git a/gdb/testsuite/gdb.trace/ftrace.exp b/gdb/testsuite/gdb.trace/ftrace.exp
index 4c81578..0772aa5 100644
--- a/gdb/testsuite/gdb.trace/ftrace.exp
+++ b/gdb/testsuite/gdb.trace/ftrace.exp
@@ -243,6 +243,8 @@ if [is_amd64_regs_target] {
set arg0exp "\$rdi"
} elseif [is_x86_like_target] {
set arg0exp "*(int *) (\$ebp + 8)"
+} elseif { [istarget "aarch64*-*-*"] } {
+ set arg0exp "\$x0"
} else {
set arg0exp ""
}