aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-11-22 01:07:24 +0000
committerMichael Snyder <msnyder@vmware.com>2001-11-22 01:07:24 +0000
commit017ac23d726034ed0f958562be5d3d43ce5879a5 (patch)
treed73c761d8b6776647d5f51eeb1b22edcd747148c /gdb
parent552c04a7423afb694bd4948e8896b3c4cc4be816 (diff)
downloadfsf-binutils-gdb-017ac23d726034ed0f958562be5d3d43ce5879a5.zip
fsf-binutils-gdb-017ac23d726034ed0f958562be5d3d43ce5879a5.tar.gz
fsf-binutils-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')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.asm/asm-source.exp3
-rwxr-xr-xgdb/testsuite/gdb.asm/configure1
-rw-r--r--gdb/testsuite/gdb.asm/configure.in1
-rw-r--r--gdb/testsuite/gdb.asm/i386.inc32
5 files changed, 42 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 5671f47..20f6bd7 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -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>
diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
index 5377e68..428d0aa 100644
--- a/gdb/testsuite/gdb.asm/asm-source.exp
+++ b/gdb/testsuite/gdb.asm/asm-source.exp
@@ -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."
}
diff --git a/gdb/testsuite/gdb.asm/configure b/gdb/testsuite/gdb.asm/configure
index fedef73..d40af7c 100755
--- a/gdb/testsuite/gdb.asm/configure
+++ b/gdb/testsuite/gdb.asm/configure
@@ -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
diff --git a/gdb/testsuite/gdb.asm/configure.in b/gdb/testsuite/gdb.asm/configure.in
index 8ff68ef..9bafbc9 100644
--- a/gdb/testsuite/gdb.asm/configure.in
+++ b/gdb/testsuite/gdb.asm/configure.in
@@ -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
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