* 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-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.
/* 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
#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"
/* 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
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
#ifndef TM_I386_H
#define TM_I386_H 1
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
-
#endif /* ifndef TM_I386_H */
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
# Target: Motorola 68HC11 processor
TDEPFILES= m68hc11-tdep.o
-TM_FILE= tm-m68hc11.h
SIM_OBS= remote-sim.o
SIM= ../sim/m68hc11/libsim.a -lm
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 *);
#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
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"
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
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
#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
#ifndef TM_NBSD_H
#define TM_NBSD_H
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
-
#include "sparc/tm-sparc.h"
#include "solib.h"
struct type;
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
-
#ifndef GDB_TARGET_IS_SPARC64
#define GDB_TARGET_IS_SPARC64 1
#endif
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;
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"
# Target: NEC V850 processor
TDEPFILES= v850-tdep.o
-# TM_FILE= tm-v850.h
SIM_OBS = remote-sim.o
SIM = ../sim/v850/libsim.a
#ifndef TM_VAX_H
#define TM_VAX_H
-#define GDB_MULTI_ARCH GDB_MULTI_ARCH_PARTIAL
-
#endif /* TM_VAX_H */
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.
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
# 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() {
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
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
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
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
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
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>
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
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>
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
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>
; 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
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.
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.])
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
configdirs="$configdirs rdi-share"
;;
-avr-*-*) gdb_target=avr
- gdb_multi_arch=yes
- ;;
+avr-*-*) gdb_target=avr ;;
cris*) gdb_target=cris ;;
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 ;;
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
#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. */