This is the mail archive of the gdb-patches@sourceware.org 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]

[rfc] [4/9] Multi-target support: Move SIM/SIM_OBS to configure.tgt


Hello,

this patch moves the simulator-related settings from .mt files into the
main configure.tgt.  configure will pass the proper setting into the
Makefile.

Note that this makes implementing --disable-sim actually simpler; we no
longer need to handle the IGNORE_SIM variables.

Also note that as SIM_OBS is always set to remote-sim.o if and only if
there is a simulator present, this is now done automatically by configure.

This patch should not change the behaviour on any target.

Bye,
Ulrich


ChangeLog:

	* config/arm/embed.mt (SIM_OBS, SIM): Remove.
	* config/avr/avr.mt (SIM_OBS, SIM): Remove.
	* config/frv/frv.mt (SIM_OBS, SIM): Remove.
	* config/h8300/h8300.mt (SIM_OBS, SIM): Remove.
	* config/iq2000/iq2000.mt (SIM_OBS, SIM): Remove.
	* config/m32c/m32c.mt (SIM_OBS, SIM): Remove.
	* config/m32r/linux.mt (SIM_OBS, SIM): Remove.
	* config/m32r/m32r.mt (SIM_OBS, SIM): Remove.
	* config/m68hc11/m68hc11.mt (SIM_OBS, SIM): Remove.
	* config/mips/embed.mt (SIM_OBS, SIM): Remove.
	* config/mips/linux.mt (SIM_OBS, SIM): Remove.
	* config/mips/nbsd.mt (SIM_OBS, SIM): Remove.
	* config/mn10300/mn10300.mt (SIM_OBS, SIM): Remove.
	* config/powerpc/linux.mt (SIM_OBS, SIM): Remove.
	* config/powerpc/nbsd.mt (SIM_OBS, SIM): Remove.
	* config/powerpc/ppc-sim.mt: Remove file.
	* config/sh/embed.mt (SIM_OBS, SIM): Remove.
	* config/sh/linux.mt (SIM_OBS, SIM): Remove.
	* config/sh/nbsd.mt (SIM_OBS, SIM): Remove.
	* config/sh/sh64.mt (SIM_OBS, SIM): Remove.
	* config/sparc/embed.mt (SIM_OBS, SIM): Remove.
	* config/v850/v850.mt (SIM_OBS, SIM): Remove.
	* config/xstormy16/xstormy16.mt (SIM_OBS, SIM): Remove.

	* configure.tgt (gdb_sim): Document variable.
	(arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*): Set it.
	(avr-*-*): Likewise.
	(frv-*-*): Likewise.
	(h8300-*-*): Likewise.
	(iq2000-*-*): Likewise.
	(m32c-*-*): Likewise.
	(m32r*-*-linux*): Likewise.
	(m32r*-*-*): Likewise.
	(m68hc11*-*-*|m6811*-*-*): Likewise.
	(mips*-*-*): Likewise.
	(mips*-*-linux*): Likewise.
	(mips*-*-netbsd* | mips*-*-knetbsd*-gnu): Likewise.
	(mn10300-*-*): Likewise.
	(powerpc-*-linux* | powerpc64-*-linux*): Likewise.
	(powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu): Likewise.
	(powerpc*-*-*): Use ppc-eabi target.  Conditionally set gdb_sim.
	(sh*): Set gdb_sim.
	(sh-*-linux*): Likewise.
	(sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu): Likewise.
	(sh64-*-elf*): Likewise.
	(sparc-*-rtems*): Likewise.
	(v850*-*-elf): Likewise.
	(xstormy16-*-*): Likewise.

	* configure.ac (IGNORE_SIM, IGNORE_SIM_OBS): Do not set.
	(SIM, SIM_OBS): Set depending on ${ignore_sim} and ${gdb_sim}.
	* configure: Regenerate.
	* Makefile.in (SIM, SIM_OBS): Substitute from configure.
	(@IGNORE_SIM@, @IGNORE_SIM_OBS@): Remove.


diff -urNp gdb-orig/gdb/config/arm/embed.mt gdb-head/gdb/config/arm/embed.mt
--- gdb-orig/gdb/config/arm/embed.mt	2007-10-24 16:28:10.175710000 +0200
+++ gdb-head/gdb/config/arm/embed.mt	2007-10-24 23:35:59.897356595 +0200
@@ -1,5 +1,2 @@
 # Target: ARM embedded system
 TDEPFILES= arm-tdep.o
-
-SIM_OBS = remote-sim.o
-SIM = ../sim/arm/libsim.a
diff -urNp gdb-orig/gdb/config/avr/avr.mt gdb-head/gdb/config/avr/avr.mt
--- gdb-orig/gdb/config/avr/avr.mt	2007-10-24 16:28:10.179709000 +0200
+++ gdb-head/gdb/config/avr/avr.mt	2007-10-24 23:35:59.901356019 +0200
@@ -1,12 +1,2 @@
 # Target: AVR
 TDEPFILES= avr-tdep.o
-
-#
-# There is no simulator provided with gdb (yet).
-#
-# See <http://savannah.gnu.org/projects/simulavr/> for the simulator
-# used during development of avr support for gdb.
-#
-# Simulator: AVR
-#SIM_OBS = remote-sim.o
-#SIM = ../sim/avr/libsim.a
diff -urNp gdb-orig/gdb/config/frv/frv.mt gdb-head/gdb/config/frv/frv.mt
--- gdb-orig/gdb/config/frv/frv.mt	2007-10-24 23:02:55.308792000 +0200
+++ gdb-head/gdb/config/frv/frv.mt	2007-10-24 23:35:59.905355443 +0200
@@ -1,4 +1,2 @@
 # Target: Fujitsu FRV processor
 TDEPFILES= frv-tdep.o frv-linux-tdep.o solib.o solib-frv.o corelow.o
-SIM_OBS = remote-sim.o
-SIM = ../sim/frv/libsim.a
diff -urNp gdb-orig/gdb/config/h8300/h8300.mt gdb-head/gdb/config/h8300/h8300.mt
--- gdb-orig/gdb/config/h8300/h8300.mt	2007-10-24 16:28:10.187708000 +0200
+++ gdb-head/gdb/config/h8300/h8300.mt	2007-10-24 23:35:59.909354868 +0200
@@ -1,5 +1,2 @@
 # Target: H8300 with HMS monitor and H8 simulator
 TDEPFILES= h8300-tdep.o monitor.o dsrec.o
-
-SIM_OBS = remote-sim.o
-SIM = ../sim/h8300/libsim.a
diff -urNp gdb-orig/gdb/config/iq2000/iq2000.mt gdb-head/gdb/config/iq2000/iq2000.mt
--- gdb-orig/gdb/config/iq2000/iq2000.mt	2007-10-24 16:28:10.190707000 +0200
+++ gdb-head/gdb/config/iq2000/iq2000.mt	2007-10-24 23:35:59.913354292 +0200
@@ -1,3 +1 @@
 TDEPFILES= iq2000-tdep.o
-SIM_OBS= remote-sim.o
-SIM= ../sim/iq2000/libsim.a
diff -urNp gdb-orig/gdb/config/m32c/m32c.mt gdb-head/gdb/config/m32c/m32c.mt
--- gdb-orig/gdb/config/m32c/m32c.mt	2007-10-24 16:28:10.194707000 +0200
+++ gdb-head/gdb/config/m32c/m32c.mt	2007-10-24 23:35:59.917353716 +0200
@@ -1,7 +1,2 @@
 # Target: Renesas M32C family
 TDEPFILES = m32c-tdep.o prologue-value.o
-
-# There may also be a SID / CGEN simulator for this, but we do have DJ
-# Delorie's mini-sim.
-SIM_OBS = remote-sim.o
-SIM = ../sim/m32c/libsim.a
diff -urNp gdb-orig/gdb/config/m32r/linux.mt gdb-head/gdb/config/m32r/linux.mt
--- gdb-orig/gdb/config/m32r/linux.mt	2007-10-24 23:19:13.419469000 +0200
+++ gdb-head/gdb/config/m32r/linux.mt	2007-10-24 23:35:59.921353141 +0200
@@ -1,5 +1,2 @@
 # Target: Renesas M32R running GNU/Linux
 TDEPFILES= m32r-tdep.o m32r-linux-tdep.o remote-m32r-sdi.o glibc-tdep.o solib.o solib-svr4.o symfile-mem.o
-
-SIM_OBS = remote-sim.o
-SIM = ../sim/m32r/libsim.a
diff -urNp gdb-orig/gdb/config/m32r/m32r.mt gdb-head/gdb/config/m32r/m32r.mt
--- gdb-orig/gdb/config/m32r/m32r.mt	2007-10-24 16:28:10.202706000 +0200
+++ gdb-head/gdb/config/m32r/m32r.mt	2007-10-24 23:35:59.925352565 +0200
@@ -1,4 +1,2 @@
 # Target: Renesas m32r processor
 TDEPFILES= m32r-tdep.o monitor.o m32r-rom.o dsrec.o remote-m32r-sdi.o
-SIM_OBS = remote-sim.o
-SIM = ../sim/m32r/libsim.a
diff -urNp gdb-orig/gdb/config/m68hc11/m68hc11.mt gdb-head/gdb/config/m68hc11/m68hc11.mt
--- gdb-orig/gdb/config/m68hc11/m68hc11.mt	2007-10-24 16:28:10.205705000 +0200
+++ gdb-head/gdb/config/m68hc11/m68hc11.mt	2007-10-24 23:35:59.929351989 +0200
@@ -1,5 +1,2 @@
 # Target: Motorola 68HC11 processor
 TDEPFILES= m68hc11-tdep.o
-SIM_OBS= remote-sim.o
-SIM= ../sim/m68hc11/libsim.a -lm
-
diff -urNp gdb-orig/gdb/config/mips/embed.mt gdb-head/gdb/config/mips/embed.mt
--- gdb-orig/gdb/config/mips/embed.mt	2007-10-24 16:28:10.209705000 +0200
+++ gdb-head/gdb/config/mips/embed.mt	2007-10-24 23:35:59.933351414 +0200
@@ -1,3 +1 @@
 TDEPFILES= mips-tdep.o
-SIM_OBS = remote-sim.o
-SIM = ../sim/mips/libsim.a
diff -urNp gdb-orig/gdb/config/mips/linux.mt gdb-head/gdb/config/mips/linux.mt
--- gdb-orig/gdb/config/mips/linux.mt	2007-10-24 16:28:10.213704000 +0200
+++ gdb-head/gdb/config/mips/linux.mt	2007-10-24 23:35:59.936350982 +0200
@@ -1,6 +1,3 @@
 # Target: Linux/MIPS
 TDEPFILES= mips-tdep.o mips-linux-tdep.o corelow.o \
 	solib.o solib-svr4.o symfile-mem.o
-
-SIM_OBS = remote-sim.o
-SIM = ../sim/mips/libsim.a
diff -urNp gdb-orig/gdb/config/mips/nbsd.mt gdb-head/gdb/config/mips/nbsd.mt
--- gdb-orig/gdb/config/mips/nbsd.mt	2007-10-24 16:28:10.217704000 +0200
+++ gdb-head/gdb/config/mips/nbsd.mt	2007-10-24 23:35:59.940350406 +0200
@@ -1,6 +1,3 @@
 # Target: MIPS running NetBSD
 TDEPFILES= mips-tdep.o mipsnbsd-tdep.o corelow.o solib.o solib-svr4.o \
 	nbsd-tdep.o
-
-SIM_OBS = remote-sim.o
-SIM = ../sim/mips/libsim.a
diff -urNp gdb-orig/gdb/config/mn10300/mn10300.mt gdb-head/gdb/config/mn10300/mn10300.mt
--- gdb-orig/gdb/config/mn10300/mn10300.mt	2007-10-24 16:28:10.221703000 +0200
+++ gdb-head/gdb/config/mn10300/mn10300.mt	2007-10-24 23:35:59.944349831 +0200
@@ -1,4 +1,2 @@
 # Target: Matsushita mn10300
 TDEPFILES= mn10300-tdep.o 
-SIM_OBS = remote-sim.o
-SIM = ../sim/mn10300/libsim.a
diff -urNp gdb-orig/gdb/config/powerpc/linux.mt gdb-head/gdb/config/powerpc/linux.mt
--- gdb-orig/gdb/config/powerpc/linux.mt	2007-10-24 23:19:13.422469000 +0200
+++ gdb-head/gdb/config/powerpc/linux.mt	2007-10-24 23:35:59.948349255 +0200
@@ -1,6 +1,3 @@
 # Target: Motorola PPC on Linux
 TDEPFILES= rs6000-tdep.o ppc-linux-tdep.o ppc-sysv-tdep.o solib.o \
 	solib-svr4.o corelow.o symfile-mem.o
-
-SIM_OBS = remote-sim.o
-SIM = ../sim/ppc/libsim.a
diff -urNp gdb-orig/gdb/config/powerpc/nbsd.mt gdb-head/gdb/config/powerpc/nbsd.mt
--- gdb-orig/gdb/config/powerpc/nbsd.mt	2007-10-24 16:28:10.229702000 +0200
+++ gdb-head/gdb/config/powerpc/nbsd.mt	2007-10-24 23:35:59.952348679 +0200
@@ -1,6 +1,3 @@
 # Target: NetBSD/powerpc
 TDEPFILES= rs6000-tdep.o ppc-sysv-tdep.o ppcnbsd-tdep.o \
 	corelow.o solib.o solib-svr4.o
-
-SIM_OBS = remote-sim.o
-SIM = ../sim/ppc/libsim.a
diff -urNp gdb-orig/gdb/config/powerpc/ppc-sim.mt gdb-head/gdb/config/powerpc/ppc-sim.mt
--- gdb-orig/gdb/config/powerpc/ppc-sim.mt	2007-10-24 16:28:10.232701000 +0200
+++ gdb-head/gdb/config/powerpc/ppc-sim.mt	1970-01-01 01:00:00.000000000 +0100
@@ -1,5 +0,0 @@
-# Target: PowerPC running eabi and including the simulator
-TDEPFILES= rs6000-tdep.o monitor.o dsrec.o ppcbug-rom.o dink32-rom.o ppc-sysv-tdep.o solib.o solib-svr4.o
-
-SIM_OBS = remote-sim.o
-SIM = ../sim/ppc/libsim.a
diff -urNp gdb-orig/gdb/config/sh/embed.mt gdb-head/gdb/config/sh/embed.mt
--- gdb-orig/gdb/config/sh/embed.mt	2007-10-24 16:28:10.236701000 +0200
+++ gdb-head/gdb/config/sh/embed.mt	2007-10-24 23:35:59.971345945 +0200
@@ -1,5 +1,2 @@
 # Target: Embedded Renesas Super-H with ICE and simulator
 TDEPFILES= sh-tdep.o sh64-tdep.o monitor.o dsrec.o 
-
-SIM_OBS = remote-sim.o
-SIM = ../sim/sh/libsim.a
diff -urNp gdb-orig/gdb/config/sh/linux.mt gdb-head/gdb/config/sh/linux.mt
--- gdb-orig/gdb/config/sh/linux.mt	2007-10-24 16:28:10.240700000 +0200
+++ gdb-head/gdb/config/sh/linux.mt	2007-10-24 23:35:59.976345225 +0200
@@ -2,6 +2,3 @@
 TDEPFILES= sh-tdep.o sh64-tdep.o sh-linux-tdep.o \
 	monitor.o dsrec.o \
 	solib.o solib-svr4.o symfile-mem.o
-
-SIM_OBS = remote-sim.o
-SIM = ../sim/sh/libsim.a
diff -urNp gdb-orig/gdb/config/sh/nbsd.mt gdb-head/gdb/config/sh/nbsd.mt
--- gdb-orig/gdb/config/sh/nbsd.mt	2007-10-24 16:28:10.243700000 +0200
+++ gdb-head/gdb/config/sh/nbsd.mt	2007-10-24 23:35:59.980344649 +0200
@@ -1,6 +1,3 @@
 # Target: NetBSD/sh
 TDEPFILES= sh-tdep.o shnbsd-tdep.o \
 	corelow.o solib.o solib-svr4.o
-
-SIM_OBS = remote-sim.o
-SIM = ../sim/sh/libsim.a
diff -urNp gdb-orig/gdb/config/sh/sh64.mt gdb-head/gdb/config/sh/sh64.mt
--- gdb-orig/gdb/config/sh/sh64.mt	2007-10-24 16:28:10.247699000 +0200
+++ gdb-head/gdb/config/sh/sh64.mt	2007-10-24 23:35:59.983344218 +0200
@@ -1,5 +1,2 @@
 # Target: Renesas/Super-H 64 bit with simulator
 TDEPFILES= sh-tdep.o sh64-tdep.o
-
-SIM_OBS = remote-sim.o
-SIM = ../sim/sh64/libsim.a
diff -urNp gdb-orig/gdb/config/sparc/embed.mt gdb-head/gdb/config/sparc/embed.mt
--- gdb-orig/gdb/config/sparc/embed.mt	2007-10-24 16:28:10.251699000 +0200
+++ gdb-head/gdb/config/sparc/embed.mt	2007-10-24 23:35:59.987343642 +0200
@@ -1,5 +1,2 @@
 # Target: SPARC embedded with simulator
 TDEPFILES= sparc-tdep.o
-
-SIM_OBS = remote-sim.o
-SIM = ../sim/erc32/libsim.a
diff -urNp gdb-orig/gdb/config/v850/v850.mt gdb-head/gdb/config/v850/v850.mt
--- gdb-orig/gdb/config/v850/v850.mt	2007-10-24 16:28:10.255698000 +0200
+++ gdb-head/gdb/config/v850/v850.mt	2007-10-24 23:35:59.992342922 +0200
@@ -1,4 +1,2 @@
 # Target: NEC V850 processor
 TDEPFILES= v850-tdep.o
-SIM_OBS = remote-sim.o
-SIM = ../sim/v850/libsim.a
diff -urNp gdb-orig/gdb/config/xstormy16/xstormy16.mt gdb-head/gdb/config/xstormy16/xstormy16.mt
--- gdb-orig/gdb/config/xstormy16/xstormy16.mt	2007-10-24 16:28:10.259697000 +0200
+++ gdb-head/gdb/config/xstormy16/xstormy16.mt	2007-10-24 23:35:59.996342347 +0200
@@ -1,5 +1,2 @@
 # Target: Sanyo Xstormy16a processor
 TDEPFILES = xstormy16-tdep.o
-# No simulator objects or libraries are needed -- target uses SID.
-# SIM_OBS = remote-sim.o
-# SIM = ../sim/xstormy16/libsim.a
diff -urNp gdb-orig/gdb/configure gdb-head/gdb/configure
--- gdb-orig/gdb/configure	2007-10-24 23:35:45.481304595 +0200
+++ gdb-head/gdb/configure	2007-10-24 23:36:00.056333711 +0200
@@ -313,7 +313,7 @@ ac_includes_default="\
 ac_subdirs_all="$ac_subdirs_all gdbtk"
 ac_subdirs_all="$ac_subdirs_all multi-ice"
 ac_subdirs_all="$ac_subdirs_all gdbserver"
-ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE!
  WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR IGNORE_SIM IGNORE_SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS'
+ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os USE_NLS LIBINTL LIBINTL_DEP INCINTL XGETTEXT GMSGFMT POSUB CATALOGS DATADIRNAME INSTOBJEXT GENCAT CATOBJEXT localedir PACKAGE subdirs AWK INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S RANLIB ac_ct_RANLIB YACC AR ac_ct_AR DLLTOOL ac_ct_DLLTOOL WINDRES ac_ct_WINDRES MIG ac_ct_MIG READLINE READLINE_DEPS READLINE_CFLAGS HAVE_LIBEXPAT LIBEXPAT LTLIBEXPAT ALLOCA CONFIG_LDFLAGS TARGET_SYSTEM_ROOT TARGET_SYSTEM_ROOT_DEFINE!
  WARN_CFLAGS WERROR_CFLAGS SER_HARDWIRE WIN32LIBS LIBGUI GUI_CFLAGS_X WIN32LDAPP TCL_VERSION TCL_MAJOR_VERSION TCL_MINOR_VERSION TCL_CC TCL_DEFS TCL_SHLIB_CFLAGS TCL_SHLIB_LD TCL_SHLIB_LD_LIBS TCL_SHLIB_SUFFIX TCL_DL_LIBS TCL_LD_FLAGS TCL_LD_SEARCH_FLAGS TCL_CC_SEARCH_FLAGS TCL_COMPAT_OBJS TCL_RANLIB TCL_BUILD_LIB_SPEC TCL_LIB_SPEC TCL_LIB_VERSIONS_OK TK_VERSION TK_DEFS TK_BUILD_INCLUDES TK_XINCLUDES TK_XLIBSW TK_BUILD_LIB_SPEC TK_LIB_SPEC TCLHDIR TKHDIR ITCLHDIR ITKHDIR ITCL_VERSION ITCL_DEFS ITCL_BUILD_INCLUDES ITCL_BUILD_LIB_SPEC ITCL_LIB_SPEC ITK_VERSION ITK_DEFS ITK_BUILD_INCLUDES ITK_BUILD_LIB_SPEC ITK_LIB_SPEC X_CFLAGS X_LDFLAGS X_LIBS TCL_DEPS TK_DEPS ITCLLIB ITCL_DEPS ITKLIB ITK_DEPS GDBTKLIBS GDBTK_CFLAGS GDBTK_SRC_DIR SIM SIM_OBS ENABLE_CFLAGS PROFILE_CFLAGS CONFIG_OBS CONFIG_DEPS CONFIG_SRCS CONFIG_ALL CONFIG_CLEAN CONFIG_INSTALL CONFIG_UNINSTALL target_subdir frags nm_h LIBICONV LIBOBJS LTLIBOBJS'
 ac_subst_files='host_makefile_frag target_makefile_frag'
 
 # Initialize some variables set by options.
@@ -23594,7 +23594,7 @@ echo "$as_me: WARNING: no enhanced curse
 fi
 
 # Unlike the sim directory, whether a simulator is linked is controlled by
-# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.
+# presence of a gdb_sim definition in the target configure.tgt entry.
 # This code just checks for a few cases where we'd like to ignore those
 # definitions, even when they're present in the '.mt' file.  These cases
 # are when --disable-sim is specified, or if the simulator directory is
@@ -23618,17 +23618,18 @@ if test ! -d "${srcdir}/../sim"; then
   ignore_sim=true
 fi
 
-if test "${ignore_sim}" = "true"; then
-    IGNORE_SIM="SIM="
-    IGNORE_SIM_OBS="SIM_OBS="
-else
-    IGNORE_SIM=""
-    IGNORE_SIM_OBS=""
+SIM=
+SIM_OBS=
+if test "${ignore_sim}" = "false"; then
+  if test x"${gdb_sim}" != x ; then
+    SIM="${gdb_sim}"
+    SIM_OBS="remote-sim.o"
 
 cat >>confdefs.h <<\_ACEOF
 #define WITH_SIM 1
 _ACEOF
 
+  fi
 fi
 
 
@@ -24791,8 +24792,8 @@ s,@ITK_DEPS@,$ITK_DEPS,;t t
 s,@GDBTKLIBS@,$GDBTKLIBS,;t t
 s,@GDBTK_CFLAGS@,$GDBTK_CFLAGS,;t t
 s,@GDBTK_SRC_DIR@,$GDBTK_SRC_DIR,;t t
-s,@IGNORE_SIM@,$IGNORE_SIM,;t t
-s,@IGNORE_SIM_OBS@,$IGNORE_SIM_OBS,;t t
+s,@SIM@,$SIM,;t t
+s,@SIM_OBS@,$SIM_OBS,;t t
 s,@ENABLE_CFLAGS@,$ENABLE_CFLAGS,;t t
 s,@PROFILE_CFLAGS@,$PROFILE_CFLAGS,;t t
 s,@CONFIG_OBS@,$CONFIG_OBS,;t t
diff -urNp gdb-orig/gdb/configure.ac gdb-head/gdb/configure.ac
--- gdb-orig/gdb/configure.ac	2007-10-24 23:35:45.529297687 +0200
+++ gdb-head/gdb/configure.ac	2007-10-24 23:36:00.111325796 +0200
@@ -1470,7 +1470,7 @@ if test x"$enable_tui" = xyes; then
 fi
 
 # Unlike the sim directory, whether a simulator is linked is controlled by 
-# presence of a SIM= and a SIM_OBS= definition in the target '.mt' file.  
+# presence of a gdb_sim definition in the target configure.tgt entry.  
 # This code just checks for a few cases where we'd like to ignore those
 # definitions, even when they're present in the '.mt' file.  These cases
 # are when --disable-sim is specified, or if the simulator directory is
@@ -1491,16 +1491,17 @@ if test ! -d "${srcdir}/../sim"; then
   ignore_sim=true
 fi
 
-if test "${ignore_sim}" = "true"; then
-    IGNORE_SIM="SIM="
-    IGNORE_SIM_OBS="SIM_OBS="
-else
-    IGNORE_SIM=""
-    IGNORE_SIM_OBS=""
+SIM=
+SIM_OBS=
+if test "${ignore_sim}" = "false"; then
+  if test x"${gdb_sim}" != x ; then
+    SIM="${gdb_sim}"
+    SIM_OBS="remote-sim.o"
     AC_DEFINE(WITH_SIM, 1, [Define if the simulator is being linked in.])
+  fi
 fi
-AC_SUBST(IGNORE_SIM)
-AC_SUBST(IGNORE_SIM_OBS)
+AC_SUBST(SIM)
+AC_SUBST(SIM_OBS)
 
 AC_SUBST(ENABLE_CFLAGS)
 AC_SUBST(PROFILE_CFLAGS)
diff -urNp gdb-orig/gdb/configure.tgt gdb-head/gdb/configure.tgt
--- gdb-orig/gdb/configure.tgt	2007-10-24 23:36:24.432548155 +0200
+++ gdb-head/gdb/configure.tgt	2007-10-24 23:36:00.117324932 +0200
@@ -4,6 +4,7 @@
 # This file sets the following shell variables:
 #  gdb_target_cpu	generic name of CPU
 #  gdb_target		name of GDB target definition to use
+#  gdb_sim		simulator library for target
 #  gdb_osabi		default OS ABI to use with target
 #  build_gdbserver	set to "yes" if gdbserver supports target
 
@@ -100,10 +101,15 @@ arm*-*-openbsd*)
 	;;
 arm*-*-* | thumb*-*-* | strongarm*-*-* | xscale-*-*)
 	gdb_target=embed
+	gdb_sim=../sim/arm/libsim.a
 	;;
 
 avr-*-*)
 	gdb_target=avr
+	# There is no simulator provided with gdb (yet).
+	# See <http://savannah.gnu.org/projects/simulavr/>
+	# for the simulator used during development of avr
+	# support for gdb.
 	;;
 
 cris*)
@@ -112,10 +118,12 @@ cris*)
 
 frv-*-*)
 	gdb_target=frv
+	gdb_sim=../sim/frv/libsim.a
 	;;
 
 h8300-*-*)
 	gdb_target=h8300
+	gdb_sim=../sim/h8300/libsim.a
 	;;
 
 hppa*-*-hpux*)
@@ -178,22 +186,29 @@ ia64*-*-*)
 
 iq2000-*-*)
 	gdb_target=iq2000
+	gdb_sim=../sim/iq2000/libsim.a
 	;;
 
 m32c-*-*)
 	gdb_target=m32c
+	# There may also be a SID / CGEN simulator for this,
+	# but we do have DJ Delorie's mini-sim.
+	gdb_sim=../sim/m32c/libsim.a
 	;;
 
 m32r*-*-linux*)
 	gdb_target=linux
+	gdb_sim=../sim/m32r/libsim.a
 	build_gdbserver=yes
 	;;
 m32r*-*-*)
 	gdb_target=m32r
+	gdb_sim=../sim/m32r/libsim.a
 	;;
 
 m68hc11*-*-*|m6811*-*-*)
 	gdb_target=m68hc11
+	gdb_sim=../sim/m68hc11/libsim.a
 	;;
 
 m68*-*-aout* | m68*-*-coff* | m68*-*-elf* | m68*-*-rtems* | m68*-*-uclinux* | \
@@ -227,20 +242,24 @@ mips*-sgi-irix6*)
 	;;
 mips*-*-linux*)
 	gdb_target=linux
+	gdb_sim=../sim/mips/libsim.a
 	build_gdbserver=yes
 	;;
 mips*-*-netbsd* | mips*-*-knetbsd*-gnu)
 	gdb_target=nbsd
+	gdb_sim=../sim/mips/libsim.a
 	;;
 mips64*-*-openbsd*)
 	gdb_target=obsd64
 	;;
 mips*-*-*)
 	gdb_target=embed
+	gdb_sim=../sim/mips/libsim.a
 	;;
 
 mn10300-*-*)
 	gdb_target=mn10300
+	gdb_sim=../sim/mn10300/libsim.a
 	;;
 
 mt-*-*)
@@ -249,6 +268,7 @@ mt-*-*)
 
 powerpc-*-netbsd* | powerpc-*-knetbsd*-gnu)
 	gdb_target=nbsd
+	gdb_sim=../sim/ppc/libsim.a
 	;;
 powerpc-*-openbsd*)
 	gdb_target=obsd
@@ -258,13 +278,13 @@ powerpc-*-aix* | rs6000-*-*)
 	;;
 powerpc-*-linux* | powerpc64-*-linux*)
 	gdb_target=linux
+	gdb_sim=../sim/ppc/libsim.a
 	build_gdbserver=yes
 	;;
 powerpc*-*-*)
+	gdb_target=ppc-eabi
 	if test -f ../sim/ppc/Makefile; then
-	  gdb_target=ppc-sim
-	else
-	  gdb_target=ppc-eabi
+	  gdb_sim=../sim/ppc/libsim.a
 	fi
 	;;
 
@@ -280,19 +300,23 @@ score-*-*)
 # FIXME should that be sh*-*-linux*, perhaps?
 sh-*-linux*)
 	gdb_target=linux
+	gdb_sim=../sim/sh/libsim.a
 	build_gdbserver=yes
 	;;
 sh*-*-netbsdelf* | sh*-*-knetbsd*-gnu)
 	gdb_target=nbsd
+	gdb_sim=../sim/sh/libsim.a
 	;;
 sh*-*-openbsd*)
 	gdb_target=obsd
 	;;
 sh64-*-elf*)
 	gdb_target=sh64
+	gdb_sim=../sim/sh64/libsim.a
 	;;
 sh*)
 	gdb_target=embed
+	gdb_sim=../sim/sh/libsim.a
 	;;
 
 sparc-*-linux*)
@@ -324,6 +348,7 @@ sparc-*-solaris2* | sparcv9-*-solaris2* 
 	;;
 sparc-*-rtems*)
 	gdb_target=embed
+	gdb_sim=../sim/erc32/libsim.a
 	;;
 sparc-*-*)
 	gdb_target=sparc
@@ -339,10 +364,12 @@ spu*-*-*)
 
 xstormy16-*-*)
 	gdb_target=xstormy16
+	# No simulator libraries are needed -- target uses SID.
 	;;
 
 v850*-*-elf)
 	gdb_target=v850
+	gdb_sim=../sim/v850/libsim.a
 	;;
 
 vax-*-netbsd* | vax-*-knetbsd*-gnu)
diff -urNp gdb-orig/gdb/Makefile.in gdb-head/gdb/Makefile.in
--- gdb-orig/gdb/Makefile.in	2007-10-24 23:35:45.638282000 +0200
+++ gdb-head/gdb/Makefile.in	2007-10-24 23:36:00.127456568 +0200
@@ -256,7 +256,7 @@ OPCODES_CFLAGS = -I$(OP_INCLUDE)
 
 # The simulator is usually nonexistent; targets that include one
 # should set this to list all the .o or .a files to be linked in.
-SIM =
+SIM = @SIM@
 
 WIN32LIBS = @WIN32LIBS@
 
@@ -421,20 +421,13 @@ SER_HARDWIRE = @SER_HARDWIRE@
 REMOTE_OBS = remote.o dcache.o tracepoint.o ax-general.o ax-gdb.o remote-fileio.o
 
 # This is remote-sim.o if a simulator is to be linked in.
-SIM_OBS =
+SIM_OBS = @SIM_OBS@
 
 # Host and target-dependent makefile fragments come in here.
 @host_makefile_frag@
 @target_makefile_frag@
 # End of host and target-dependent makefile fragments
 
-# Possibly ignore the simulator.  If the simulator is being ignored,
-# these expand into SIM= and SIM_OBJ=, overriding the entries from
-# target_makefile_frag
-#
-@IGNORE_SIM@
-@IGNORE_SIM_OBS@
-
 FLAGS_TO_PASS = \
 	"prefix=$(prefix)" \
 	"exec_prefix=$(exec_prefix)" \
-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com


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