summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYao Qi <yao.qi@linaro.org>2015-09-16 15:13:29 +0100
committerYao Qi <yao.qi@linaro.org>2015-09-16 15:13:29 +0100
commit991f019c506528fa94ac173db6f1120f8b2373bf (patch)
tree5a844eb8711852906c740a983d28d6472f0c3fa3
parentbca6d0e3195217576b39fa1205469e1d578b386a (diff)
downloadbinutils-gdb-991f019c506528fa94ac173db6f1120f8b2373bf.tar.gz
Don't skip gdb.asm/asm-source.exp on aarch64
This patch adds gdb.asm/aarch64.inc, so asm-source.exp isn't skipped on aarch64 any more. gdb/testsuite: 2015-09-16 Yao Qi <yao.qi@linaro.org> * gdb.asm/asm-source.exp: Set asm-arch for aarch64*-*-* target. * gdb.asm/aarch64.inc: New file.
-rw-r--r--gdb/testsuite/ChangeLog6
-rw-r--r--gdb/testsuite/gdb.asm/aarch64.inc34
-rw-r--r--gdb/testsuite/gdb.asm/asm-source.exp3
3 files changed, 43 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 3de56d302fe..de503ace500 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2015-09-16 Yao Qi <yao.qi@linaro.org>
+
+ * gdb.asm/asm-source.exp: Set asm-arch for
+ aarch64*-*-* target.
+ * gdb.asm/aarch64.inc: New file.
+
2015-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
* gdb.ada/array_of_variable_length.exp: New testcase.
diff --git a/gdb/testsuite/gdb.asm/aarch64.inc b/gdb/testsuite/gdb.asm/aarch64.inc
new file mode 100644
index 00000000000..0144cdca9db
--- /dev/null
+++ b/gdb/testsuite/gdb.asm/aarch64.inc
@@ -0,0 +1,34 @@
+ comment "subroutine prologue"
+ .macro gdbasm_enter
+ stp x29, x30, [sp,#-32]!
+ mov x29, sp
+ .endm
+
+ comment "subroutine epilogue"
+ .macro gdbasm_leave
+ ldp x29, x30, [sp],#32
+ ret
+ .endm
+
+ .macro gdbasm_call subr
+ bl \subr
+ .endm
+
+ .macro gdbasm_several_nops
+ nop
+ nop
+ nop
+ nop
+ .endm
+
+ comment "exit (0)"
+ .macro gdbasm_exit0
+ mov x8, #93
+ svc 0
+ .endm
+
+ comment "crt0 startup"
+ .macro gdbasm_startup
+ mov x0, sp
+ .endm
+
diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
index 14a0f85d3a3..bd66c935aee 100644
--- a/gdb/testsuite/gdb.asm/asm-source.exp
+++ b/gdb/testsuite/gdb.asm/asm-source.exp
@@ -40,6 +40,9 @@ switch -glob -- [istarget] {
"arm*-*-*" {
set asm-arch arm
}
+ "aarch64*-*-*" {
+ set asm-arch aarch64
+ }
"bfin-*-*" {
set asm-arch bfin
}