2001-11-20 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Thu, 22 Nov 2001 01:07:24 +0000 (01:07 +0000)
committerMichael Snyder <msnyder@vmware.com>
Thu, 22 Nov 2001 01:07:24 +0000 (01:07 +0000)
* 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/testsuite/ChangeLog
gdb/testsuite/gdb.asm/asm-source.exp
gdb/testsuite/gdb.asm/configure
gdb/testsuite/gdb.asm/configure.in
gdb/testsuite/gdb.asm/i386.inc [new file with mode: 0644]

index 5671f47d4725d550642d2f175629df4425612036..20f6bd72ee85984f5baec2169d451db206ffcaa2 100644 (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>
index 5377e68bb50b561745dc22233a66ab9d4c4c05ce..428d0aa9d358c4b075d262a60b7dd963a2a04865 100644 (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."
 }
index fedef7398fdf0f0809a2085ce60d08f0cd819b68..d40af7c7eaf1f407e666250bf573f11647a1ecbb 100755 (executable)
@@ -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
 
 
index 8ff68efbdc565608fdb54c3f94127c79fe36fb22..9bafbc950e18224231a599c394da976d523a443f 100644 (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)
 
diff --git a/gdb/testsuite/gdb.asm/i386.inc b/gdb/testsuite/gdb.asm/i386.inc
new file mode 100644 (file)
index 0000000..1d9670e
--- /dev/null
@@ -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