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*-*-*.
This commit is contained in:
Yao Qi
2015-12-15 16:09:41 +00:00
parent 270f824531
commit a22279dd83
2 changed files with 7 additions and 0 deletions

View 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.

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