Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH] Add sparc64 gdb.asm/ testsuite bits
@ 2002-04-17 12:51 David S. Miller
  2002-04-17 12:55 ` Elena Zannoni
  2002-04-18 18:13 ` Michael Snyder
  0 siblings, 2 replies; 4+ messages in thread
From: David S. Miller @ 2002-04-17 12:51 UTC (permalink / raw)
  To: gdb-patches


This adds sparc64 support to the gdb.asm part of the testsuite.

Although I have a question, there used to be configure bits in this
gdb.asm directory that would setup the symlink in the build area for
arch.inc and that doesn't happen anymore.  How is this supposed to
work now?

2002-04-17  David S. Miller  <davem@redhat.com>

	* gdb.asm/sparc64.inc: New file.
	* gdb.asm/asm-source.exp: Handle sparc64-*-*.

--- ./testsuite/gdb.asm/sparc64.inc.~1~	Tue Apr 16 10:59:10 2002
+++ ./testsuite/gdb.asm/sparc64.inc	Tue Apr 16 10:58:53 2002
@@ -0,0 +1,34 @@
+	comment "subroutine prologue"
+	.macro gdbasm_enter
+	save	%sp, -192, %sp
+	.endm
+
+	comment "subroutine epilogue"
+	.macro gdbasm_leave
+	return %i7 + 8
+	nop
+	.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..."
+	ldx	[%g0], %i0
+	.endm
+
+	comment "crt0 startup"
+	.macro gdbasm_startup
+	clr	%fp
+	.endm
+
--- ./testsuite/gdb.asm/asm-source.exp.~1~	Tue Apr 16 10:56:47 2002
+++ ./testsuite/gdb.asm/asm-source.exp	Tue Apr 16 10:58:53 2002
@@ -59,6 +59,10 @@ if [istarget "powerpc*-*"] then {
 if [istarget "sparc-*-*"] then {
     set asm-arch sparc
 }
+if [istarget "sparc64-*-*"] then {
+    set asm-arch sparc64
+    set asm-flags "-xarch=v9 -gstabs -I${srcdir}/${subdir} -I${objdir}/${subdir}"
+}
 if [istarget "xstormy16-*-*"] then {
     set asm-arch xstormy16
     set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}"


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Add sparc64 gdb.asm/ testsuite bits
  2002-04-17 12:51 [PATCH] Add sparc64 gdb.asm/ testsuite bits David S. Miller
@ 2002-04-17 12:55 ` Elena Zannoni
  2002-04-18 18:13 ` Michael Snyder
  1 sibling, 0 replies; 4+ messages in thread
From: Elena Zannoni @ 2002-04-17 12:55 UTC (permalink / raw)
  To: David S. Miller; +Cc: gdb-patches

David S. Miller writes:
 > 
 > This adds sparc64 support to the gdb.asm part of the testsuite.
 > 
 > Although I have a question, there used to be configure bits in this
 > gdb.asm directory that would setup the symlink in the build area for
 > arch.inc and that doesn't happen anymore.  How is this supposed to
 > work now?

I just changed that to do it in the .exp file, at run time.  I am
about to commit another patch to get rid of the symlink and just do a
copy.

Elena


 > 
 > 2002-04-17  David S. Miller  <davem@redhat.com>
 > 
 > 	* gdb.asm/sparc64.inc: New file.
 > 	* gdb.asm/asm-source.exp: Handle sparc64-*-*.
 > 
 > --- ./testsuite/gdb.asm/sparc64.inc.~1~	Tue Apr 16 10:59:10 2002
 > +++ ./testsuite/gdb.asm/sparc64.inc	Tue Apr 16 10:58:53 2002
 > @@ -0,0 +1,34 @@
 > +	comment "subroutine prologue"
 > +	.macro gdbasm_enter
 > +	save	%sp, -192, %sp
 > +	.endm
 > +
 > +	comment "subroutine epilogue"
 > +	.macro gdbasm_leave
 > +	return %i7 + 8
 > +	nop
 > +	.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..."
 > +	ldx	[%g0], %i0
 > +	.endm
 > +
 > +	comment "crt0 startup"
 > +	.macro gdbasm_startup
 > +	clr	%fp
 > +	.endm
 > +
 > --- ./testsuite/gdb.asm/asm-source.exp.~1~	Tue Apr 16 10:56:47 2002
 > +++ ./testsuite/gdb.asm/asm-source.exp	Tue Apr 16 10:58:53 2002
 > @@ -59,6 +59,10 @@ if [istarget "powerpc*-*"] then {
 >  if [istarget "sparc-*-*"] then {
 >      set asm-arch sparc
 >  }
 > +if [istarget "sparc64-*-*"] then {
 > +    set asm-arch sparc64
 > +    set asm-flags "-xarch=v9 -gstabs -I${srcdir}/${subdir} -I${objdir}/${subdir}"
 > +}
 >  if [istarget "xstormy16-*-*"] then {
 >      set asm-arch xstormy16
 >      set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}"


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Add sparc64 gdb.asm/ testsuite bits
  2002-04-17 12:51 [PATCH] Add sparc64 gdb.asm/ testsuite bits David S. Miller
  2002-04-17 12:55 ` Elena Zannoni
@ 2002-04-18 18:13 ` Michael Snyder
  2002-04-19 10:22   ` David S. Miller
  1 sibling, 1 reply; 4+ messages in thread
From: Michael Snyder @ 2002-04-18 18:13 UTC (permalink / raw)
  To: David S. Miller; +Cc: gdb-patches

"David S. Miller" wrote:
> 
> This adds sparc64 support to the gdb.asm part of the testsuite.

Approved, please check it in.

> Although I have a question, there used to be configure bits in this
> gdb.asm directory that would setup the symlink in the build area for
> arch.inc and that doesn't happen anymore.  How is this supposed to
> work now?
> 
> 2002-04-17  David S. Miller  <davem@redhat.com>
> 
>         * gdb.asm/sparc64.inc: New file.
>         * gdb.asm/asm-source.exp: Handle sparc64-*-*.
> 
> --- ./testsuite/gdb.asm/sparc64.inc.~1~ Tue Apr 16 10:59:10 2002
> +++ ./testsuite/gdb.asm/sparc64.inc     Tue Apr 16 10:58:53 2002
> @@ -0,0 +1,34 @@
> +       comment "subroutine prologue"
> +       .macro gdbasm_enter
> +       save    %sp, -192, %sp
> +       .endm
> +
> +       comment "subroutine epilogue"
> +       .macro gdbasm_leave
> +       return %i7 + 8
> +       nop
> +       .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..."
> +       ldx     [%g0], %i0
> +       .endm
> +
> +       comment "crt0 startup"
> +       .macro gdbasm_startup
> +       clr     %fp
> +       .endm
> +
> --- ./testsuite/gdb.asm/asm-source.exp.~1~      Tue Apr 16 10:56:47 2002
> +++ ./testsuite/gdb.asm/asm-source.exp  Tue Apr 16 10:58:53 2002
> @@ -59,6 +59,10 @@ if [istarget "powerpc*-*"] then {
>  if [istarget "sparc-*-*"] then {
>      set asm-arch sparc
>  }
> +if [istarget "sparc64-*-*"] then {
> +    set asm-arch sparc64
> +    set asm-flags "-xarch=v9 -gstabs -I${srcdir}/${subdir} -I${objdir}/${subdir}"
> +}
>  if [istarget "xstormy16-*-*"] then {
>      set asm-arch xstormy16
>      set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}"


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH] Add sparc64 gdb.asm/ testsuite bits
  2002-04-18 18:13 ` Michael Snyder
@ 2002-04-19 10:22   ` David S. Miller
  0 siblings, 0 replies; 4+ messages in thread
From: David S. Miller @ 2002-04-19 10:22 UTC (permalink / raw)
  To: msnyder; +Cc: gdb-patches

   From: Michael Snyder <msnyder@redhat.com>
   Date: Thu, 18 Apr 2002 18:02:07 -0700

   "David S. Miller" wrote:
   > 
   > This adds sparc64 support to the gdb.asm part of the testsuite.
   
   Approved, please check it in.
   
Done, thusly...

2002-04-17  David S. Miller  <davem@redhat.com>

	* gdb.asm/sparc64.inc: New file.
	* gdb.asm/asm-source.exp: Handle sparc64-*-*.

--- ./testsuite/gdb.asm/sparc64.inc.~1~	Tue Apr 16 10:59:10 2002
+++ ./testsuite/gdb.asm/sparc64.inc	Tue Apr 16 10:58:53 2002
@@ -0,0 +1,34 @@
+	comment "subroutine prologue"
+	.macro gdbasm_enter
+	save	%sp, -192, %sp
+	.endm
+
+	comment "subroutine epilogue"
+	.macro gdbasm_leave
+	return %i7 + 8
+	nop
+	.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..."
+	ldx	[%g0], %i0
+	.endm
+
+	comment "crt0 startup"
+	.macro gdbasm_startup
+	clr	%fp
+	.endm
+
--- ./testsuite/gdb.asm/asm-source.exp.~1~	Tue Apr 16 10:56:47 2002
+++ ./testsuite/gdb.asm/asm-source.exp	Tue Apr 16 10:58:53 2002
@@ -59,6 +59,10 @@ if [istarget "powerpc*-*"] then {
 if [istarget "sparc-*-*"] then {
     set asm-arch sparc
 }
+if [istarget "sparc64-*-*"] then {
+    set asm-arch sparc64
+    set asm-flags "-xarch=v9 -gstabs -I${srcdir}/${subdir} -I${objdir}/${subdir}"
+}
 if [istarget "xstormy16-*-*"] then {
     set asm-arch xstormy16
     set asm-flags "-gdwarf2 -I${srcdir}/${subdir} -I${objdir}/${subdir}"


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-04-19 17:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-17 12:51 [PATCH] Add sparc64 gdb.asm/ testsuite bits David S. Miller
2002-04-17 12:55 ` Elena Zannoni
2002-04-18 18:13 ` Michael Snyder
2002-04-19 10:22   ` David S. Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox