]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2003-09-03 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Wed, 3 Sep 2003 15:02:51 +0000 (15:02 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 3 Sep 2003 15:02:51 +0000 (15:02 +0000)
* defs.h: Do not include "arch-utils.h".
(GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
GDB_MULTI_ARCH_PURE.
* configure.in (GDB_MULTI_ARCH): Do not define.
* configure, config.in: Regenerate.
* configure.tgt: Do not set variable "gdb_multi_arch".
* config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
* config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
* config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
* config/v850/v850.mt (TM_FILE): Delete disabled definition.
* config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
* config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
* config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
* config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
* config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
* config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
* config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
* config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
* config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
* config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
* config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
* config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
* config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
* config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.

24 files changed:
gdb/ChangeLog
gdb/config.in
gdb/config/alpha/tm-alpha.h
gdb/config/frv/tm-frv.h
gdb/config/h8300/tm-h8300.h
gdb/config/i386/tm-i386.h
gdb/config/i386/x86-64linux.mt
gdb/config/m68hc11/m68hc11.mt
gdb/config/m68k/tm-m68k.h
gdb/config/ns32k/tm-ns32k.h
gdb/config/pa/tm-hppa64.h
gdb/config/s390/s390.mt
gdb/config/s390/s390x.mt
gdb/config/sparc/tm-linux.h
gdb/config/sparc/tm-nbsd.h
gdb/config/sparc/tm-sp64.h
gdb/config/sparc/tm-sparc.h
gdb/config/sparc/tm-sun4sol2.h
gdb/config/v850/v850.mt
gdb/config/vax/tm-vax.h
gdb/configure
gdb/configure.in
gdb/configure.tgt
gdb/defs.h

index f8f4565b8e9ffd41bf9a5456105cbcad914f3816..e4a36eafa78ee28ae8cac76c9ade060de996afb8 100644 (file)
@@ -1,3 +1,30 @@
+2003-09-03  Andrew Cagney  <cagney@redhat.com>
+
+       * defs.h: Do not include "arch-utils.h".
+       (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
+       GDB_MULTI_ARCH_PURE.
+       * configure.in (GDB_MULTI_ARCH): Do not define.
+       * configure, config.in: Regenerate.
+       * configure.tgt: Do not set variable "gdb_multi_arch".
+       * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
+       * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
+       * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
+       * config/v850/v850.mt (TM_FILE): Delete disabled definition.
+       * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
+       * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
+       * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
+       * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
+       * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
+       * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
+       * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
+       * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
+       * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
+       * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
+       * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
+       * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
+       * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
+       * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
+       
 2003-08-30  Michael Chastain  <mec@shout.net>
 
        * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
index 787afb26ce4c975d11017a15d98aa2981f31bb68..4acf3e7bc65d3a74e50ca0a27dbe7538058ee3d5 100644 (file)
 /* Define if <sys/ptrace.h> defines the PT_GETXMMREGS request.  */
 #undef HAVE_PT_GETXMMREGS
 
-/* Multi-arch enabled. */
-#undef GDB_MULTI_ARCH
-
 /* hostfile */
 #undef GDB_XM_FILE
 
index 9ced4f238ed599410abae8e495eed8fe1ac0873a..1b93e76b799c4593048e1ef16da790ced40d82b8 100644 (file)
@@ -24,8 +24,6 @@
 #ifndef TM_ALPHA_H
 #define TM_ALPHA_H
 
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
-
 #include "bfd.h"
 #include "coff/sym.h"          /* Needed for PDR below.  */
 #include "coff/symconst.h"
index 303d1d313395b79ddb9713bedeeae454196eb902..a08f2d3d4bca7d33c43a7077775ee7a58d871580 100644 (file)
@@ -20,9 +20,6 @@
 
 /* This target uses an architecture vector for most architecture methods.  */
 
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
-
-
 #define TARGET_HW_BREAK_LIMIT 4
 #define TARGET_HW_WATCH_LIMIT 4
 
index e560c644c8d1d8f6d60066b7a1bde572e28f1048..5d1aaa723b92c47d1d895ef6d57716c5516ca80e 100644 (file)
@@ -20,8 +20,6 @@
    Boston, MA 02111-1307, USA.  */
 /* Contributed by Steve Chamberlain sac@cygnus.com */
 
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
-
 /* NOTE: ezannoni 2000-07-18: these variables are part of sim, defined
    in sim/h8300/compile.c.  They really should not be used this
    way. Because of this we cannot get rid of the macro
index 395c9b259b182cd4d3e351ff1d3daa6cf67caf90..e2bd81fdaa852acf00fc428a8c0199ecc60a4f93 100644 (file)
@@ -22,6 +22,4 @@
 #ifndef TM_I386_H
 #define TM_I386_H 1
 
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
-
 #endif /* ifndef TM_I386_H */
index bb33978de3f5a27667f3dac8eadfe4cd21deef3a..9ef593844e26272440a966ae9e71fbe4660b6623 100644 (file)
@@ -3,6 +3,4 @@ TDEPFILES= x86-64-tdep.o x86-64-linux-tdep.o \
        i386-tdep.o i387-tdep.o i386-linux-tdep.o \
        solib.o solib-svr4.o solib-legacy.o corelow.o
 
-GDB_MULTI_ARCH=GDB_MULTI_ARCH_TM
-
 TM_FILE=tm-x86-64linux.h
index 5e25eeec67373551bf03afe81e8219f9ee22fe70..0f1f0019eaa0671f160004e682bff28d9665dfc2 100644 (file)
@@ -1,6 +1,5 @@
 # Target: Motorola 68HC11 processor
 TDEPFILES= m68hc11-tdep.o
-TM_FILE= tm-m68hc11.h
 SIM_OBS= remote-sim.o
 SIM= ../sim/m68hc11/libsim.a -lm
 
index f773428a2f0188bee0dc46f478bd3052842f8d68..17b31981f1939cdfb93badf7bd871d9663a11331 100644 (file)
@@ -19,6 +19,4 @@
    Foundation, Inc., 59 Temple Place - Suite 330,
    Boston, MA 02111-1307, USA.  */
 
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
-
 extern int m68k_get_longjmp_target (CORE_ADDR *);
index cd1594294fcbdd2a2ba9e9a44a538fa315a36518..96dd2cb26bf071c4a00b20cffb13d1d95ab51eff 100644 (file)
@@ -22,8 +22,6 @@
 #ifndef TM_NS32K_H
 #define TM_NS32K_H
 
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
-
 /* Need to get function ends by adding this to epilogue address from .bf
    record, not using x_fsize field.  */
 #define FUNCTION_EPILOGUE_SIZE 4
index 8999edf2dcb63a5be5c9db22c65e164c1ba9f3c1..f9e5b9e66e95a903807dfd9fd56fd70e43232385 100644 (file)
@@ -35,7 +35,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
    causing GDB to lose line number information.  Since prior to this
    switch and a other recent tweaks, 64 bit PA hadn't been building
    for some months, this is probably the lesser of several evils.  */
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
 
 #include "pa/tm-hppah.h"
 
index 6b8d91fc83fc032816211f5c7b9ffe4ee0e570fa..86b6a3371cc9649c4a9cc6f89a47d1f3eea83a0b 100644 (file)
@@ -3,4 +3,3 @@ TM_FILE= tm-linux.h
 TDEPFILES=s390-tdep.o solib.o
 # Post 5.0 tdep-files
 TDEPFILES+=solib-svr4.o solib-legacy.o
-GDB_MULTI_ARCH=GDB_MULTI_ARCH_PARTIAL
index 7b23cad60cb95031a0436a6da12d2284c01112f7..d0c8262f72d7464feec9146f0e1a4b41351d530e 100644 (file)
@@ -3,7 +3,6 @@ TM_FILE= tm-linux.h
 TDEPFILES=s390-tdep.o solib.o
 # Post 5.0 tdep-files
 TDEPFILES+=solib-svr4.o solib-legacy.o
-GDB_MULTI_ARCH=GDB_MULTI_ARCH_PARTIAL
 
 # needed for gdbserver.
 MT_CFLAGS= -DCONFIG_ARCH_S390X
index 31eeff9e206bfa3b59ba81a46124f98de44c5d84..63be2b885a502d1b5d5e2b4291b62749b0d7508b 100644 (file)
@@ -23,8 +23,6 @@
 #ifndef TM_SPARCLINUX_H
 #define TM_SPARCLINUX_H
 
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
-
 #include "sparc/tm-sparc.h"
 
 #define SIGCONTEXT_PC_OFFSET 12
index bd9845029b5b4e4dcde53ad73ff8fa3269d05181..c82c3154088335f6de891522eee338825aa9ad0b 100644 (file)
@@ -21,8 +21,6 @@
 #ifndef TM_NBSD_H
 #define TM_NBSD_H
 
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
-
 #include "sparc/tm-sparc.h"
 #include "solib.h"
 
index 203f65607f99392d0ae29daaaabb8ae08b6f12b9..960cc0b9d976a21768e5f50283ec2cbc12acdc36 100644 (file)
@@ -25,8 +25,6 @@
 
 struct type;
 
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
-
 #ifndef GDB_TARGET_IS_SPARC64
 #define GDB_TARGET_IS_SPARC64 1
 #endif
index 4355c8e302a2edc9e495a4a60070d132739391b6..a18e20317d50e1149236347f60603dbefed1f2ad 100644 (file)
@@ -22,8 +22,6 @@
    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 eb253b1c29f4d4dff4b895c919af7e01c5cb4f20..506e9370de6cb245a755a717b17aee9ec0edb2e5 100644 (file)
@@ -19,8 +19,6 @@
    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 "config/tm-sysv4.h"
 
index 867f8e68429d628fc2b0fd7f4e57c05ee43814e7..701a24098b08e038a9d038e8d1e159bce8998889 100644 (file)
@@ -1,5 +1,4 @@
 # Target: NEC V850 processor
 TDEPFILES= v850-tdep.o
-# TM_FILE= tm-v850.h
 SIM_OBS = remote-sim.o
 SIM = ../sim/v850/libsim.a
index f1ed146fe8e0611ad8f2be161bd59d9798da05f4..b5e1ac22a1d811ae1dad566d9b15645b9b2d4dc7 100644 (file)
@@ -22,6 +22,4 @@
 #ifndef TM_VAX_H
 #define TM_VAX_H
 
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
-
 #endif /* TM_VAX_H */
index 1a9a877ddabc1e4821f83de588c3a1327f5d14ca..f2015caca5a126fc684c1783c86c125f772244de 100755 (executable)
@@ -10239,10 +10239,6 @@ targetfile=`sed -n '
 s/TM_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
 ' ${target_makefile_frag}`
 
-GDB_MULTI_ARCH=`sed -n '
-s/GDB_MULTI_ARCH[      ]*=[    ]*\([^  ]*\)[   ]*/\1/p
-' ${target_makefile_frag}`
-
 if test "${target}" = "${host}"; then
 # We pick this up from the host configuration file (.mh) because we
 # do not have a native configuration Makefile fragment.
@@ -10252,36 +10248,6 @@ s/NAT_FILE[    ]*=[    ]*\([^  ]*\)/\1/p
 fi
 
 
-# New targets should just set gdb_multi_arch=yes in configure.tgt.
-# Old targets being converted can either do that or set GDB_MULTI_ARCH
-# in the target specific makefile frag.  Eventually gdb_multi_arch=yes
-# will be the default.
-if test x"${GDB_MULTI_ARCH}" = x ; then
-    case "${gdb_multi_arch}" in
-    yes ) GDB_MULTI_ARCH=GDB_MULTI_ARCH_PURE ;;
-    no ) GDB_MULTI_ARCH=0 ;;
-    0|1|2 ) GDB_MULTI_ARCH=${gdb_multi_arch} ;;
-    esac
-fi
-if test x"${GDB_MULTI_ARCH}" != x ; then
-    cat >> confdefs.h <<EOF
-#define GDB_MULTI_ARCH ${GDB_MULTI_ARCH}
-EOF
-
-fi
-# Warn the user when they use an old practice
-case "${GDB_MULTI_ARCH}" in
-    "" ) ;;
-    0 | GDB_MULTI_ARCH_PARTIAL | 1 | GDB_MULTI_ARCH_TM | 2 )
-       echo "configure: warning: "GDB: Target is not pure multi-arch"" 1>&2 ;;
-    GDB_MULTI_ARCH_PURE )
-       if test x"${targetfile}" != x ; then
-           echo "configure: warning: "GDB: Ignoring TM_FILE in ${target_makefile_frag}"" 1>&2
-           targetfile=""
-       fi ;;
-    *)  { echo "configure: error: "GDB: Unknown GDB_MULTI_ARCH value ${GDB_MULTI_ARCH}"" 1>&2; exit 1; };;
-esac
-
 if test x"${gdb_osabi}" != x ; then
     cat >> confdefs.h <<EOF
 #define GDB_OSABI_DEFAULT $gdb_osabi
@@ -10307,7 +10273,7 @@ fi
 # We only build gdbserver automatically if host and target are the same.
 if test "x$target" = "x$host"; then
   echo $ac_n "checking whether gdbserver is supported on this host""... $ac_c" 1>&6
-echo "configure:10311: checking whether gdbserver is supported on this host" >&5
+echo "configure:10277: checking whether gdbserver is supported on this host" >&5
   if test "x$build_gdbserver" = xyes; then
     configdirs="$configdirs gdbserver"
     echo "$ac_t""yes" 1>&6
 
 
 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
-echo "configure:10375: checking for Cygwin environment" >&5
+echo "configure:10341: checking for Cygwin environment" >&5
 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 10380 "configure"
+#line 10346 "configure"
 #include "confdefs.h"
 
 int main() {
@@ -10387,7 +10353,7 @@ int main() {
 return __CYGWIN__;
 ; return 0; }
 EOF
-if { (eval echo configure:10391: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10357: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_cygwin=yes
 else
@@ -10404,19 +10370,19 @@ echo "$ac_t""$ac_cv_cygwin" 1>&6
 CYGWIN=
 test "$ac_cv_cygwin" = yes && CYGWIN=yes
 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
-echo "configure:10408: checking for mingw32 environment" >&5
+echo "configure:10374: checking for mingw32 environment" >&5
 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 10413 "configure"
+#line 10379 "configure"
 #include "confdefs.h"
 
 int main() {
 return __MINGW32__;
 ; return 0; }
 EOF
-if { (eval echo configure:10420: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10386: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   ac_cv_mingw32=yes
 else
@@ -10435,7 +10401,7 @@ test "$ac_cv_mingw32" = yes && MINGW32=yes
 
 
 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
-echo "configure:10439: checking for executable suffix" >&5
+echo "configure:10405: checking for executable suffix" >&5
 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -10445,10 +10411,10 @@ else
   rm -f conftest*
   echo 'int main () { return 0; }' > conftest.$ac_ext
   ac_cv_exeext=
-  if { (eval echo configure:10449: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
+  if { (eval echo configure:10415: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
     for file in conftest.*; do
       case $file in
-      *.c | *.C | *.o | *.obj | *.ilk | *.pdb) ;;
+      *.c | *.o | *.obj | *.ilk | *.pdb) ;;
       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
       esac
     done
@@ -10487,7 +10453,7 @@ fi
 
 
   echo $ac_n "checking for iconv""... $ac_c" 1>&6
-echo "configure:10491: checking for iconv" >&5
+echo "configure:10457: checking for iconv" >&5
 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -10495,7 +10461,7 @@ else
     am_cv_func_iconv="no, consider installing GNU libiconv"
     am_cv_lib_iconv=no
     cat > conftest.$ac_ext <<EOF
-#line 10499 "configure"
+#line 10465 "configure"
 #include "confdefs.h"
 #include <stdlib.h>
 #include <iconv.h>
@@ -10505,7 +10471,7 @@ iconv_t cd = iconv_open("","");
        iconv_close(cd);
 ; return 0; }
 EOF
-if { (eval echo configure:10509: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   am_cv_func_iconv=yes
 else
@@ -10517,7 +10483,7 @@ rm -f conftest*
       am_save_LIBS="$LIBS"
       LIBS="$LIBS -liconv"
       cat > conftest.$ac_ext <<EOF
-#line 10521 "configure"
+#line 10487 "configure"
 #include "confdefs.h"
 #include <stdlib.h>
 #include <iconv.h>
@@ -10527,7 +10493,7 @@ iconv_t cd = iconv_open("","");
          iconv_close(cd);
 ; return 0; }
 EOF
-if { (eval echo configure:10531: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:10497: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   am_cv_lib_iconv=yes
         am_cv_func_iconv=yes
@@ -10548,13 +10514,13 @@ echo "$ac_t""$am_cv_func_iconv" 1>&6
 EOF
 
     echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
-echo "configure:10552: checking for iconv declaration" >&5
+echo "configure:10518: checking for iconv declaration" >&5
     if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   
       cat > conftest.$ac_ext <<EOF
-#line 10558 "configure"
+#line 10524 "configure"
 #include "confdefs.h"
 
 #include <stdlib.h>
@@ -10573,7 +10539,7 @@ int main() {
 
 ; return 0; }
 EOF
-if { (eval echo configure:10577: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
+if { (eval echo configure:10543: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
   rm -rf conftest*
   am_cv_proto_iconv_arg1=""
 else
index e14e10294b1757509a8a8128ac8bc91fd6570615..544b6de01d4525609c88a5f531ea843d460f47ad 100644 (file)
@@ -1306,10 +1306,6 @@ targetfile=`sed -n '
 s/TM_FILE[     ]*=[    ]*\([^  ]*\)/\1/p
 ' ${target_makefile_frag}`
 
-GDB_MULTI_ARCH=`sed -n '
-s/GDB_MULTI_ARCH[      ]*=[    ]*\([^  ]*\)[   ]*/\1/p
-' ${target_makefile_frag}`
-
 if test "${target}" = "${host}"; then
 # We pick this up from the host configuration file (.mh) because we
 # do not have a native configuration Makefile fragment.
@@ -1319,33 +1315,6 @@ s/NAT_FILE[      ]*=[    ]*\([^  ]*\)/\1/p
 fi
 changequote([,])
 
-# New targets should just set gdb_multi_arch=yes in configure.tgt.
-# Old targets being converted can either do that or set GDB_MULTI_ARCH
-# in the target specific makefile frag.  Eventually gdb_multi_arch=yes
-# will be the default.
-if test x"${GDB_MULTI_ARCH}" = x ; then
-    case "${gdb_multi_arch}" in
-    yes ) GDB_MULTI_ARCH=GDB_MULTI_ARCH_PURE ;;
-    no ) GDB_MULTI_ARCH=0 ;;
-    0|1|2 ) GDB_MULTI_ARCH=${gdb_multi_arch} ;;
-    esac
-fi
-if test x"${GDB_MULTI_ARCH}" != x ; then
-    AC_DEFINE_UNQUOTED(GDB_MULTI_ARCH, ${GDB_MULTI_ARCH})
-fi
-# Warn the user when they use an old practice
-case "${GDB_MULTI_ARCH}" in
-    "" ) ;;
-    0 | GDB_MULTI_ARCH_PARTIAL | 1 | GDB_MULTI_ARCH_TM | 2 )
-       AC_MSG_WARN("GDB: Target is not pure multi-arch") ;;
-    GDB_MULTI_ARCH_PURE )
-       if test x"${targetfile}" != x ; then
-           AC_MSG_WARN("GDB: Ignoring TM_FILE in ${target_makefile_frag}")
-           targetfile=""
-       fi ;;
-    *)  AC_MSG_ERROR("GDB: Unknown GDB_MULTI_ARCH value ${GDB_MULTI_ARCH}");;
-esac
-
 if test x"${gdb_osabi}" != x ; then
     AC_DEFINE_UNQUOTED(GDB_OSABI_DEFAULT, $gdb_osabi,
                       [Define to the default OS ABI for this configuration.])
index 48b516fd146d0244ba117f338545f410430e5780..810b27e18f45def3fc0e025a8e029200449efb40 100644 (file)
@@ -50,8 +50,7 @@ arm*-wince-pe)                gdb_target=wince ;;
 arm*-*-linux*)         gdb_target=linux
                        build_gdbserver=yes
                        ;;
-arm*-*-netbsd*)                gdb_target=nbsd
-                       gdb_multi_arch=yes ;;
+arm*-*-netbsd*)                gdb_target=nbsd ;;
 arm-*-nto*)            gdb_target=nto ;;
 arm*-*-* | thumb*-*-* | strongarm*-*-*)
                        gdb_target=embed
@@ -61,9 +60,7 @@ xscale-*-*)           gdb_target=embed
                         configdirs="$configdirs rdi-share"
                         ;;
 
-avr-*-*)               gdb_target=avr
-                       gdb_multi_arch=yes
-                       ;;
+avr-*-*)               gdb_target=avr ;;
 
 cris*)                  gdb_target=cris ;;
 
@@ -131,7 +128,6 @@ m68*-*-aout*)               gdb_target=monitor ;;
 m68*-*-coff*)          gdb_target=monitor ;;
 m68*-*-elf*)           gdb_target=monitor ;;
 m68*-*-linux*)         gdb_target=linux
-                       gdb_multi_arch=1
                        build_gdbserver=yes
                        ;;
 m68*-*-lynxos*)                gdb_target=m68klynx ;;
@@ -266,21 +262,6 @@ x86_64-*-linux*)   gdb_target=x86-64linux
 
 esac
 
-
-# map GDB target onto multi-arch support
-
-case "${gdb_target}" in
-d10v)          gdb_multi_arch=yes ;;
-fbsd64)                gdb_multi_arch=yes ;;
-m32r)          gdb_multi_arch=yes ;;
-m68hc11)       gdb_multi_arch=yes ;;
-mn10300)       gdb_multi_arch=yes ;;
-x86-64linux)    gdb_multi_arch=yes ;;
-v850)           gdb_multi_arch=yes ;;
-xstormy16)      gdb_multi_arch=yes ;;
-mcore)         gdb_multi_arch=yes ;;
-esac
-
 # map target onto default OS ABI
 
 case "${target}" in
index 778f5579e5346603b503e45b4f787b6861ca9ee9..39b27cb94775476df5f3bbad644f77b2d0818200 100644 (file)
@@ -1086,14 +1086,17 @@ extern void *alloca ();
 #endif /* Not GNU C */
 #endif /* alloca not defined */
 
+/* Is GDB multi-arch?  If there's a "tm.h" file, it is not.  */
+#ifndef GDB_MULTI_ARCH
+#ifdef GDB_TM_FILE
+#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
+#else
+#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PURE
+#endif
+#endif
+
 /* Dynamic target-system-dependent parameters for GDB. */
 #include "gdbarch.h"
-#if (GDB_MULTI_ARCH == 0)
-/* Multi-arch targets _should_ be including "arch-utils.h" directly
-   into their *-tdep.c file.  This is a prop to help old non-
-   multi-arch targets to continue to compile. */
-#include "arch-utils.h"
-#endif
 
 /* Maximum size of a register.  Something small, but large enough for
    all known ISAs.  If it turns out to be too small, make it bigger.  */