old-cross-binutils/gdb/testsuite/gdb.asm/i386.inc
Michael Snyder ca9efc9063 2001-11-30 Michael Snyder <msnyder@redhat.com>
* 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.
2001-12-04 19:45:57 +00:00

39 lines
491 B
PHP

comment "subroutine prologue"
.macro gdbasm_enter
push %ebp
mov %esp,%ebp
.endm
comment "subroutine epilogue"
.macro gdbasm_leave
pop %ebp
ret
.endm
.macro gdbasm_call subr
call \subr
.endm
.macro gdbasm_several_nops
nop
nop
nop
nop
.endm
comment "exit (0)"
.macro gdbasm_exit0
hlt
.endm
comment "crt0 startup"
.macro gdbasm_startup
xor %ebp, %ebp
.endm
comment "Declare a data variable"
.macro gdbasm_datavar name value
.data
\name:
.long \value
.endm