aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.asm/common.inc
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.asm/common.inc')
-rw-r--r--gdb/testsuite/gdb.asm/common.inc10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.asm/common.inc b/gdb/testsuite/gdb.asm/common.inc
index 7cca3ab..5149392 100644
--- a/gdb/testsuite/gdb.asm/common.inc
+++ b/gdb/testsuite/gdb.asm/common.inc
@@ -7,6 +7,13 @@
.include "\arch\file"
.endm
+ comment "Declare a data variable"
+ .macro gdbasm_datavar name value
+ .data
+\name:
+ .word \value
+ .endm
+
comment "arch.inc is responsible for defining the following macros:"
comment "enter - subroutine prologue"
comment "leave - subroutine epilogue"
@@ -14,5 +21,8 @@ comment "call - call a named subroutine"
comment "several_nops - execute several (typically 4) nops"
comment "exit0 - exit (0)"
+comment "arch.inc may also override the default definitions of:"
+comment "datavar - define a data variable"
+
comment "macros to label a subroutine may also eventually be needed"
comment "i.e. .global foo\nfoo:\n"