diff options
author | Michael Snyder <msnyder@vmware.com> | 2001-11-22 01:07:24 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2001-11-22 01:07:24 +0000 |
commit | 017ac23d726034ed0f958562be5d3d43ce5879a5 (patch) | |
tree | d73c761d8b6776647d5f51eeb1b22edcd747148c /gdb/testsuite/gdb.asm/i386.inc | |
parent | 552c04a7423afb694bd4948e8896b3c4cc4be816 (diff) | |
download | gdb-017ac23d726034ed0f958562be5d3d43ce5879a5.zip gdb-017ac23d726034ed0f958562be5d3d43ce5879a5.tar.gz gdb-017ac23d726034ed0f958562be5d3d43ce5879a5.tar.bz2 |
2001-11-20 Michael Snyder <msnyder@redhat.com>
* gdb.asm/i386.inc: New file.
* gdb.asm/asm-source.exp: Recognize ix86 target.
* gdb.asm/configure.in: Recognize ix86 target.
* gdb.asm/configure: Regenerate.
Diffstat (limited to 'gdb/testsuite/gdb.asm/i386.inc')
-rw-r--r-- | gdb/testsuite/gdb.asm/i386.inc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.asm/i386.inc b/gdb/testsuite/gdb.asm/i386.inc new file mode 100644 index 0000000..1d9670e --- /dev/null +++ b/gdb/testsuite/gdb.asm/i386.inc @@ -0,0 +1,32 @@ + 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 |