diff mbox

Tweak gdb.trace/ftrace.exp for aarch64

Message ID 1450195686-18310-1-git-send-email-yao.qi@linaro.org
State New
Headers show

Commit Message

Yao Qi Dec. 15, 2015, 4:08 p.m. UTC
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 mbox

Patch

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 ""
 }