* gdb.asm/asm-source.exp: Add "mips*-*" pattern. Update line

numbers.  Allow "foo2|selected stack frame".
        * gdb.asm/asmsrc1.s: Use gdbasm_declare and gdbasm_end.
        * gdb.asm/asmsrc2.s: Likewise.
        * gdb.asm/common.inc: Define gdbasm_declare and gdbasm_end.  Update
        comments.
        * gdb.asm/mips.inc: New file.
This commit is contained in:
Daniel Jacobowitz
2002-10-22 01:43:37 +00:00
parent 17c84737fa
commit 8b1d7e37a4
5 changed files with 93 additions and 13 deletions

View File

@@ -14,6 +14,15 @@
.word \value
.endm
comment "Declare a subroutine"
.macro gdbasm_declare name
\name:
.endm
comment "End a subroutine"
.macro gdbasm_end name
.endm
comment "arch.inc is responsible for defining the following macros:"
comment "enter - subroutine prologue"
comment "leave - subroutine epilogue"
@@ -23,6 +32,5 @@ 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"
comment "declare - declare the start of a subroutine"
comment "end - end a subroutine"