[RFA] All sparc targets multi-arch

David S. Miller davem@redhat.com
Sun Apr 21 23:44:00 GMT 2002


Use GDB_MULTI_ARCH_PARTIAL for every Sparc target.

This is a step in the direction of fully multi-arching every Sparc
target fully and doing away with all of the target headers.  I know
what basically needs to be done to make this a reality.

I was able to verify a build of every target except sparc-*-sunos4*
because the configure system forces crosses of GDB to that target to
not be allowed.

The next patch, after this one is allowed to go in, is to kill off all
the non-multi-arch ifdef'd code.  This will make all future Sparc
multi-arching changes much smaller as currently everytime something
happens you have to make sure you catch the non-multi-arch sparc
targets so they still build.

Ok to install?

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

	* config/sparc/tm-nbsd.h, config/sparc/tm-sparc-em.h,
	config/sparc/tm-sparclet.h, config/sparc/tm-sparclite.h,
	config/sparc/tm-sun4os4.h, config/sparc/tm-sparclynx.h
	(GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_PARTIAL.

--- ./config/sparc/tm-nbsd.h.~1~	Wed Jul  7 13:17:07 1999
+++ ./config/sparc/tm-nbsd.h	Sun Apr 21 19:32:11 2002
@@ -21,6 +21,8 @@
 #ifndef TM_NBSD_H
 #define TM_NBSD_H
 
+#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
+
 #include "sparc/tm-sparc.h"
 
 #include "tm-nbsd.h"
--- ./config/sparc/tm-spc-em.h.~1~	Tue Mar  6 00:21:37 2001
+++ ./config/sparc/tm-spc-em.h	Sun Apr 21 19:27:39 2002
@@ -18,6 +18,8 @@
    Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
+
 #include "sparc/tm-sparc.h"
 
 /* Offsets into jmp_buf.  Not defined by Sun, but at least documented in a
--- ./config/sparc/tm-sparclet.h.~1~	Sun Jan 20 11:26:50 2002
+++ ./config/sparc/tm-sparclet.h	Sun Apr 21 20:51:53 2002
@@ -22,6 +22,8 @@
 
 #define TARGET_SPARCLET 1	/* Still needed for non-multi-arch case */
 
+#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
+
 #include "sparc/tm-sparc.h"
 
 /* Note: we are not defining GDB_MULTI_ARCH for the sparclet target
--- ./config/sparc/tm-sparclite.h.~1~	Sun Jan 20 11:26:50 2002
+++ ./config/sparc/tm-sparclite.h	Sun Apr 21 20:52:02 2002
@@ -23,6 +23,8 @@
 
 #define TARGET_SPARCLITE 1	/* Still needed for non-multi-arch case */
 
+#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
+
 #include "sparc/tm-sparc.h"
 
 /* Note: we are not defining GDB_MULTI_ARCH for the sparclet target
--- ./config/sparc/tm-sun4os4.h.~1~	Tue Mar  6 00:21:37 2001
+++ ./config/sparc/tm-sun4os4.h	Sun Apr 21 20:52:09 2002
@@ -19,6 +19,8 @@
    Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
+
 #include "sparc/tm-sparc.h"
 #include "tm-sunos.h"
 
--- ./config/sparc/tm-sparclynx.h.~1~	Tue Mar  6 00:21:37 2001
+++ ./config/sparc/tm-sparclynx.h	Sun Apr 21 21:01:07 2002
@@ -21,6 +21,8 @@
 #ifndef TM_SPARCLYNX_H
 #define TM_SPARCLYNX_H
 
+#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
+
 #include "tm-lynx.h"
 
 /* Use generic Sparc definitions. */



More information about the Gdb-patches mailing list