This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[commit] Drop non-multi-arch default


Hello,

This patch switches sparc-elf multi-arch partial and then drops the default of gdb being non-multi-arch. Everything is either pure multi-arch or explicitly defining GDB_MULTI_ARCH to partial or none (hp/ux 11).

committed,
Andrew
2003-07-17  Andrew Cagney  <cagney@redhat.com>

	* defs.h (GDB_MULTI_ARCH): Delete conditional define.  Handled by
	configure.
	* sparc-tdep.c (sparc_intreg_size): Make non-static.
	* config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
	GDB_MULTI_ARCH_PARTIAL.

Index: defs.h
===================================================================
RCS file: /cvs/src/src/gdb/defs.h,v
retrieving revision 1.125
diff -u -r1.125 defs.h
--- defs.h	10 Jun 2003 14:37:03 -0000	1.125
+++ defs.h	17 Jul 2003 18:48:08 -0000
@@ -780,16 +780,6 @@
 #include "tm.h"
 #endif
 
-/* GDB_MULTI_ARCH is normally set by configure.in using information
-   from configure.tgt or the config/%/%.mt Makefile fragment.  Since
-   some targets have defined it in their "tm.h" file, delay providing
-   a default definition until after "tm.h" has been included.. */
-
-#ifndef GDB_MULTI_ARCH
-#define GDB_MULTI_ARCH 0
-#endif
-
-
 /* If the xm.h file did not define the mode string used to open the
    files, assume that binary files are opened the same way as text
    files */
Index: sparc-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/sparc-tdep.c,v
retrieving revision 1.117
diff -u -r1.117 sparc-tdep.c
--- sparc-tdep.c	7 Jul 2003 15:56:04 -0000	1.117
+++ sparc-tdep.c	17 Jul 2003 18:48:13 -0000
@@ -3218,7 +3218,7 @@
     return (gcc_p != 1);
 }
 
-static int
+int
 sparc_intreg_size (void)
 {
   return SPARC_INTREG_SIZE;
Index: config/sparc/tm-sparc.h
===================================================================
RCS file: /cvs/src/src/gdb/config/sparc/tm-sparc.h,v
retrieving revision 1.56
diff -u -r1.56 tm-sparc.h
--- config/sparc/tm-sparc.h	7 Jul 2003 15:56:08 -0000	1.56
+++ config/sparc/tm-sparc.h	17 Jul 2003 18:48:13 -0000
@@ -22,6 +22,8 @@
    Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
+#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
+
 #include "regcache.h"
 
 struct type;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]