Tweak gdb.trace/ftrace.exp for aarch64
authorYao Qi <yao.qi@linaro.org>
Tue, 15 Dec 2015 16:09:41 +0000 (16:09 +0000)
committerYao Qi <yao.qi@linaro.org>
Tue, 15 Dec 2015 16:09:41 +0000 (16:09 +0000)
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*-*-*.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.trace/ftrace.exp

index 56c3c474c70001342bf58fd7237db04a8c4c5318..57c6ccdf8639a5fbfbfbbb23009e0ddc5ae34545 100644 (file)
@@ -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.
index 4c81578083b3ef258476e4fef16a0349e0c6d37d..0772aa55e597a683b8782118fc20ec4ca54fbaca 100644 (file)
@@ -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 ""
 }