From a22279dd83da7a0dd2b496c92dc2522427f74e37 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Tue, 15 Dec 2015 16:09:41 +0000 Subject: [PATCH] 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 * gdb.trace/ftrace.exp: Set arg0exp to "$x0" if target is aarch64*-*-*. --- gdb/testsuite/ChangeLog | 5 +++++ gdb/testsuite/gdb.trace/ftrace.exp | 2 ++ 2 files changed, 7 insertions(+) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 56c3c474c70..57c6ccdf863 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-12-15 Yao Qi + + * gdb.trace/ftrace.exp: Set arg0exp to "$x0" if target + is aarch64*-*-*. + 2015-12-14 Sandra Loosemore * 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 4c81578083b..0772aa55e59 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 "" } -- 2.30.2