From 88160bca966a36ddde86267edd3dbf1a51213990 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Tue, 8 Aug 2006 18:57:25 +0000 Subject: [PATCH] gdb/ * config/sparc/embed.mt: New file. * configure.tgt (sparc-*-rtems*): Use embed.mt. sim/ * configure.ac (sparc-*-rtems*|sparc-*-elf*): Enable erc32 simulator. * Makefile.in (FLAGS_TO_PASS): Include libdir. * configure: Regenerated. sim/erc32/ * Makefile.in (func.o, help.o): Correct dependencies. * Makefile.in (install-sis): Honor DESTDIR. --- gdb/ChangeLog | 5 +++++ gdb/config/sparc/embed.mt | 5 +++++ gdb/configure.tgt | 1 + sim/ChangeLog | 6 ++++++ sim/Makefile.in | 1 + sim/configure | 9 +++++++++ sim/configure.ac | 5 +++++ sim/erc32/ChangeLog | 8 ++++++++ sim/erc32/Makefile.in | 6 +++--- 9 files changed, 43 insertions(+), 3 deletions(-) create mode 100644 gdb/config/sparc/embed.mt diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 239b96c0e8..80297e0e65 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-08-08 Joel Sherrill + + * config/sparc/embed.mt: New file. + * configure.tgt (sparc-*-rtems*): Use embed.mt. + 2006-08-08 Daniel Jacobowitz * Makefile.in (objfiles.o, symfile.o): Update. diff --git a/gdb/config/sparc/embed.mt b/gdb/config/sparc/embed.mt new file mode 100644 index 0000000000..5d3039c012 --- /dev/null +++ b/gdb/config/sparc/embed.mt @@ -0,0 +1,5 @@ +# Target: SPARC embedded with simulator +TDEPFILES= sparc-tdep.o + +SIM_OBS = remote-sim.o +SIM = ../sim/erc32/libsim.a diff --git a/gdb/configure.tgt b/gdb/configure.tgt index bbf2496202..0e1911df86 100644 --- a/gdb/configure.tgt +++ b/gdb/configure.tgt @@ -204,6 +204,7 @@ sparc-*-solaris2.[0-6] | sparc-*-solaris2.[0-6].*) sparc-*-solaris2* | sparcv9-*-solaris2* | sparc64-*-solaris2*) gdb_target=sol2-64 ;; +sparc-*-rtems*) gdb_target=embed ;; sparc-*-*) gdb_target=sparc ;; sparc64-*-*) gdb_target=sparc64 ;; diff --git a/sim/ChangeLog b/sim/ChangeLog index 7975de3f5d..b68d793fd3 100644 --- a/sim/ChangeLog +++ b/sim/ChangeLog @@ -1,3 +1,9 @@ +2006-08-08 Joel Sherrill + + * configure.ac (sparc-*-rtems*|sparc-*-elf*): Enable erc32 simulator. + * Makefile.in (FLAGS_TO_PASS): Include libdir. + * configure: Regenerated. + 2006-06-05 Daniel Jacobowitz * cris/configure: Regenerated. diff --git a/sim/Makefile.in b/sim/Makefile.in index 396062069c..28ed0a8b18 100644 --- a/sim/Makefile.in +++ b/sim/Makefile.in @@ -84,6 +84,7 @@ FLAGS_TO_PASS = \ "exec_prefix=$(exec_prefix)" \ "bindir=$(bindir)" \ "mandir=$(mandir)" \ + "libdir=$(libdir)" \ "against=$(against)" \ "AR=$(AR)" \ "AR_FLAGS=$(AR_FLAGS)" \ diff --git a/sim/configure b/sim/configure index 8346c59d47..cc9a915120 100755 --- a/sim/configure +++ b/sim/configure @@ -286,6 +286,7 @@ ac_subdirs_all="$ac_subdirs_all mips" ac_subdirs_all="$ac_subdirs_all mn10300" ac_subdirs_all="$ac_subdirs_all sh64" ac_subdirs_all="$ac_subdirs_all sh" +ac_subdirs_all="$ac_subdirs_all erc32" ac_subdirs_all="$ac_subdirs_all ppc" ac_subdirs_all="$ac_subdirs_all v850" ac_subdirs_all="$ac_subdirs_all testsuite" @@ -3525,6 +3526,14 @@ subdirs="$subdirs sh" testsuite=yes common=yes ;; + sparc-*-rtems*|sparc-*-elf*) + + +subdirs="$subdirs erc32" + + testsuite=yes + common=yes + ;; powerpc*-*-* ) diff --git a/sim/configure.ac b/sim/configure.ac index 205482bcc9..b58206e942 100644 --- a/sim/configure.ac +++ b/sim/configure.ac @@ -115,6 +115,11 @@ if test "${enable_sim}" != no; then testsuite=yes common=yes ;; + sparc-*-rtems*|sparc-*-elf*) + AC_CONFIG_SUBDIRS(erc32) + testsuite=yes + common=yes + ;; powerpc*-*-* ) AC_CONFIG_SUBDIRS(ppc) common=yes diff --git a/sim/erc32/ChangeLog b/sim/erc32/ChangeLog index e885bda5ba..7cb028f2b7 100644 --- a/sim/erc32/ChangeLog +++ b/sim/erc32/ChangeLog @@ -1,3 +1,11 @@ +2006-08-08 Daniel Jacobowitz + + * Makefile.in (func.o, help.o): Correct dependencies. + +2006-08-08 Joel Sherrill + + * Makefile.in (install-sis): Honor DESTDIR. + 2006-06-13 Richard Earnshaw * configure: Regenerated. diff --git a/sim/erc32/Makefile.in b/sim/erc32/Makefile.in index 845815a174..bb4396b6ed 100644 --- a/sim/erc32/Makefile.in +++ b/sim/erc32/Makefile.in @@ -53,7 +53,7 @@ end.h: end # Copy the files into directories where they will be run. install-sis: installdirs n=`echo sis | sed '$(program_transform_name)'`; \ - $(INSTALL_PROGRAM) sis$(EXEEXT) $(bindir)/$$n$(EXEEXT) + $(INSTALL_PROGRAM) sis$(EXEEXT) $(DESTDIR)$(bindir)/$$n$(EXEEXT) clean-sis: rm -f sis end end.h @@ -69,7 +69,7 @@ configure: erc32.o: erc32.c sis.h end.h exec.o: exec.c sis.h end.h float.o: float.c sis.h end.h -func.o: func.c -help.o: help.c +func.o: func.c sis.h end.h +help.o: help.c sis.h end.h interf.o: interf.c sis.h end.h sis.o: sis.c sis.h end.h -- 2.11.0