forked from Imagelibrary/binutils-gdb
* 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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user