aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2001-11-27 01:29:03 +0000
committerMichael Snyder <msnyder@vmware.com>2001-11-27 01:29:03 +0000
commit756caa3d897f60ba7a6db86e5d8af3645100a6ac (patch)
treef268df018aa42b8bc1fd4c449a243097a9311495
parentb77b1eb785131946dd6c213008eddf30311e415e (diff)
downloadgdb-756caa3d897f60ba7a6db86e5d8af3645100a6ac.zip
gdb-756caa3d897f60ba7a6db86e5d8af3645100a6ac.tar.gz
gdb-756caa3d897f60ba7a6db86e5d8af3645100a6ac.tar.bz2
2001-11-21 Michael Snyder <msnyder@redhat.com>
* gdb.asm/sparc.inc: New file. * gdb.asm/asm-source.exp: Recognize sparc target. * gdb.asm/configure.in: Recognize sparc target. * gdb.asm/configure: Regenerate.
-rw-r--r--gdb/testsuite/ChangeLog7
-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/sparc.inc34
5 files changed, 46 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 677435c..2ce70e9 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -13,6 +13,13 @@
2001-11-21 Michael Snyder <msnyder@redhat.com>
+ * gdb.asm/sparc.inc: New file.
+ * gdb.asm/asm-source.exp: Recognize sparc target.
+ * gdb.asm/configure.in: Recognize sparc target.
+ * gdb.asm/configure: Regenerate.
+
+2001-11-21 Michael Snyder <msnyder@redhat.com>
+
* gdb.asm/m32r.inc: New file.
* gdb.asm/asm-source.exp: Recognize m32r target.
* gdb.asm/configure.in: Recognize m32r target.
diff --git a/gdb/testsuite/gdb.asm/asm-source.exp b/gdb/testsuite/gdb.asm/asm-source.exp
index d6cd75f..602d844 100644
--- a/gdb/testsuite/gdb.asm/asm-source.exp
+++ b/gdb/testsuite/gdb.asm/asm-source.exp
@@ -44,6 +44,9 @@ if [istarget "i\[3456\]86-*-*"] then {
if [istarget "m32r*-*"] then {
set asm-arch m32r
}
+if [istarget "sparc-*-*"] then {
+ set asm-arch sparc
+}
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 3c87b1b..0da4b49 100755
--- a/gdb/testsuite/gdb.asm/configure
+++ b/gdb/testsuite/gdb.asm/configure
@@ -638,6 +638,7 @@ case ${target} in
d10v-*-*) archinc=d10v.inc ;;
i[3456]86*) archinc=i386.inc ;;
m32r*-*) archinc=m32r.inc ;;
+sparc-*-*) archinc=sparc.inc ;;
esac
diff --git a/gdb/testsuite/gdb.asm/configure.in b/gdb/testsuite/gdb.asm/configure.in
index 2faf543..af03134 100644
--- a/gdb/testsuite/gdb.asm/configure.in
+++ b/gdb/testsuite/gdb.asm/configure.in
@@ -18,6 +18,7 @@ case ${target} in
d10v-*-*) archinc=d10v.inc ;;
i[[3456]]86*) archinc=i386.inc ;;
m32r*-*) archinc=m32r.inc ;;
+sparc-*-*) archinc=sparc.inc ;;
esac
AC_LINK_FILES($archinc,arch.inc)
diff --git a/gdb/testsuite/gdb.asm/sparc.inc b/gdb/testsuite/gdb.asm/sparc.inc
new file mode 100644
index 0000000..916a9e0
--- /dev/null
+++ b/gdb/testsuite/gdb.asm/sparc.inc
@@ -0,0 +1,34 @@
+ comment "subroutine prologue"
+ .macro gdbasm_enter
+ save %sp, -112, %sp
+ .endm
+
+ comment "subroutine epilogue"
+ .macro gdbasm_leave
+ ret
+ restore
+ .endm
+
+ .macro gdbasm_call subr
+ call \subr
+ nop
+ .endm
+
+ .macro gdbasm_several_nops
+ nop
+ nop
+ nop
+ nop
+ .endm
+
+ comment "exit (0)"
+ .macro gdbasm_exit0
+ comment "Don't know how to exit, but this will certainly halt..."
+ ld [%g0], %i0
+ .endm
+
+ comment "crt0 startup"
+ .macro gdbasm_startup
+ clr %fp
+ .endm
+