This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Tweak gdb.trace/ftrace.exp for aarch64
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Tue, 15 Dec 2015 16:08:06 +0000
- Subject: [PATCH] Tweak gdb.trace/ftrace.exp for aarch64
- Authentication-results: sourceware.org; auth=none
Some tests are skipped on aarch64 unexpectedly because arg0exp isn't
set. This patch is to set arg0exp to "$x0" for aarch64.
I'll push it in.
gdb/testsuite:
2015-12-15 Yao Qi <yao.qi@linaro.org>
* gdb.trace/ftrace.exp: Set arg0exp to "$x0" if target
is aarch64*-*-*.
---
gdb/testsuite/gdb.trace/ftrace.exp | 2 ++
1 file changed, 2 insertions(+)
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 ""
}
--
1.9.1