2001-11-21 Michael Snyder <msnyder@redhat.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 27 Nov 2001 01:29:03 +0000 (01:29 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 27 Nov 2001 01:29:03 +0000 (01:29 +0000)
        * 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.

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/sparc.inc [new file with mode: 0644]

index 677435ca7befadf2fc4254bd97f144b1eca814f2..2ce70e9c6dca03d0c56f053a878b77879cd6d7d8 100644 (file)
        * gdb.asm/configure.in: Fix recognition of ix86 target.
        * gdb.asm/configure: Regenerate.
 
+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.
index d6cd75fa4bc0f4457b100dc7200b07deef73d1b8..602d8440389024ddd2736d1c44b9c464b5a91ae5 100644 (file)
@@ -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."
 }
index 3c87b1b8eea50c345f48b234b8f46641a205fee6..0da4b494868482bec2514b447a7d2e8ba192ac82 100755 (executable)
@@ -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
 
 
index 2faf543cbe752149106e68ad695f108eaf166b71..af031342105cfb6a0d669b5dea95582314429f12 100644 (file)
@@ -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 (file)
index 0000000..916a9e0
--- /dev/null
@@ -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
+