mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-04 07:44:22 +08:00
ca9efc9063
* gdb.asm/asm-source.exp: Add tests for list, search, finish, return, next, info source, info sources, info line, global and static variables, and static functions. * gdb.asm/common.inc: New macro gdbasm_datavar (default definition). * gdb.asm/i386.inc: Override default definition of gdbasm_datavar. * gdb.asm/asmsrc1.s: Add a static function and some variables. * gdb.asm/asmsrc2.s: Make foo2 call foo3 twice (to test 'next'). * gdb.asm/d10v.inc (gdbasm_enter): Set up frame pointer. (gdbasm_leave): Restore frame pointer. (gdbasm_startup): Copy stack set-up from crt0.S.
29 lines
744 B
PHP
29 lines
744 B
PHP
.macro comment text
|
|
.endm
|
|
|
|
comment "Can't rely on assembler comment character so do this."
|
|
|
|
.macro include arch file
|
|
.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"
|
|
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"
|