public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] Don't skip gdb.asm/asm-source.exp on aarch64
@ 2015-09-16 14:03 Yao Qi
  0 siblings, 0 replies; only message in thread
From: Yao Qi @ 2015-09-16 14:03 UTC (permalink / raw)
  To: gdb-patches

This patch adds gdb.asm/aarch64.inc, so asm-source.exp isn't skipped
on aarch64 any more.  I'll push it in.

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.
---
 gdb/testsuite/gdb.asm/aarch64.inc    | 34 ++++++++++++++++++++++++++++++++++
 gdb/testsuite/gdb.asm/asm-source.exp |  3 +++
 2 files changed, 37 insertions(+)
 create mode 100644 gdb/testsuite/gdb.asm/aarch64.inc

diff --git a/gdb/testsuite/gdb.asm/aarch64.inc b/gdb/testsuite/gdb.asm/aarch64.inc
new file mode 100644
index 0000000..0144cdc
--- /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 14a0f85..bd66c93 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
     }
-- 
1.9.1

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-16 14:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-16 14:03 [PATCH] Don't skip gdb.asm/asm-source.exp on aarch64 Yao Qi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).