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.
This commit is contained in:
Michael Snyder 2001-11-22 01:07:24 +00:00
parent 552c04a742
commit 017ac23d72
5 changed files with 42 additions and 0 deletions

View File

@ -1,5 +1,10 @@
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.
* gdb.c++/namespace.exp: Fix quotes in output messages.
2001-11-14 Michael Snyder <msnyder@redhat.com>

View File

@ -38,6 +38,9 @@ set link-flags ""
if [istarget "d10v-*-*"] then {
set asm-arch d10v
}
if [istarget "i\[3456\]86-*-*"] then {
set asm-arch i386
}
if { "${asm-arch}" == "" } {
gdb_suppress_entire_file "Assembly source test -- not implemented for this target."
}

View File

@ -634,6 +634,7 @@ test "$host_alias" != "$target_alias" &&
archinc=common.inc
case ${target} in
d10v-*-*) archinc=d10v.inc ;;
i[3456]86*) archinc=i386.inc ;;
esac

View File

@ -16,6 +16,7 @@ dnl In default case we need to link with some file so use common.inc.
archinc=common.inc
case ${target} in
d10v-*-*) archinc=d10v.inc ;;
i[3456]86*) archinc=i386.inc ;;
esac
AC_LINK_FILES($archinc,arch.inc)

View File

@ -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