Browse Source

sim: make nrun the default run program

We want people to stop using the run.c frontend, but it's hard to notice
when it's still set as the default.  Lets flip things so nrun.c is the
default, and users of run.c will get an error by default.  We turn that
error into a warning for existing sims so we don't break them -- this is
mostly meant for people starting new ports.
gdb-7.10-branch
Mike Frysinger 11 years ago
parent
commit
465fb143c8
  1. 6
      sim/arm/ChangeLog
  2. 6
      sim/arm/Makefile.in
  3. 6
      sim/avr/ChangeLog
  4. 5
      sim/avr/Makefile.in
  5. 4
      sim/bfin/ChangeLog
  6. 3
      sim/bfin/Makefile.in
  7. 6
      sim/common/ChangeLog
  8. 2
      sim/common/Make-common.in
  9. 7
      sim/common/run.c
  10. 6
      sim/cr16/ChangeLog
  11. 6
      sim/cr16/Makefile.in
  12. 4
      sim/cris/ChangeLog
  13. 1
      sim/cris/Makefile.in
  14. 6
      sim/d10v/ChangeLog
  15. 6
      sim/d10v/Makefile.in
  16. 4
      sim/erc32/ChangeLog
  17. 1
      sim/erc32/Makefile.in
  18. 4
      sim/frv/ChangeLog
  19. 1
      sim/frv/Makefile.in
  20. 4
      sim/h8300/ChangeLog
  21. 3
      sim/h8300/Makefile.in
  22. 4
      sim/iq2000/ChangeLog
  23. 1
      sim/iq2000/Makefile.in
  24. 4
      sim/lm32/ChangeLog
  25. 3
      sim/lm32/Makefile.in
  26. 4
      sim/m32r/ChangeLog
  27. 1
      sim/m32r/Makefile.in
  28. 4
      sim/m68hc11/ChangeLog
  29. 3
      sim/m68hc11/Makefile.in
  30. 6
      sim/mcore/ChangeLog
  31. 4
      sim/mcore/Makefile.in
  32. 8
      sim/microblaze/ChangeLog
  33. 9
      sim/microblaze/Makefile.in
  34. 4
      sim/mips/ChangeLog
  35. 4
      sim/mips/Makefile.in
  36. 4
      sim/mn10300/ChangeLog
  37. 3
      sim/mn10300/Makefile.in
  38. 6
      sim/moxie/ChangeLog
  39. 4
      sim/moxie/Makefile.in
  40. 4
      sim/msp430/ChangeLog
  41. 2
      sim/msp430/Makefile.in
  42. 6
      sim/sh/ChangeLog
  43. 4
      sim/sh/Makefile.in
  44. 4
      sim/sh64/ChangeLog
  45. 1
      sim/sh64/Makefile.in
  46. 4
      sim/v850/ChangeLog
  47. 2
      sim/v850/Makefile.in

6
sim/arm/ChangeLog

@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Add
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete unistd.h.

6
sim/arm/Makefile.in

@ -17,10 +17,14 @@
## COMMON_PRE_CONFIG_FRAG
SIM_EXTRA_CFLAGS = -DMODET -DNEED_UI_LOOP_HOOK -DSIM_TARGET_SWITCHES
SIM_EXTRA_CFLAGS = -DMODET -DNEED_UI_LOOP_HOOK -DSIM_TARGET_SWITCHES \
-DSIM_USE_DEPRECATED_RUN_FRONTEND
COPRO=@COPRO@
# Use the deprecated run frontend until we migrate to nrun.o
SIM_RUN_OBJS = run.o
SIM_OBJS = armemu26.o armemu32.o arminit.o armos.o armsupp.o \
armvirt.o bag.o thumbemu.o wrapper.o sim-load.o $(COPRO)

6
sim/avr/ChangeLog

@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Set to
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
2015-02-19 Mike Frysinger <vapier@gentoo.org>
* interp.c (sim_kill): Delete unused func.

5
sim/avr/Makefile.in

@ -16,6 +16,11 @@
## COMMON_PRE_CONFIG_FRAG
SIM_EXTRA_CFLAGS = -DSIM_USE_DEPRECATED_RUN_FRONTEND
# Use the deprecated run frontend until we migrate to nrun.o
SIM_RUN_OBJS = run.o
SIM_OBJS = interp.o sim-load.o
SIM_EXTRA_LIBS = -lm

4
sim/bfin/ChangeLog

@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2015-03-10 Mike Frysinger <vapier@gentoo.org>
PR sim/13160

3
sim/bfin/Makefile.in

@ -20,9 +20,6 @@ NL_TARGET = -DNL_TARGET_bfin
## COMMON_PRE_CONFIG_FRAG
# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o
SIM_OBJS = \
$(SIM_NEW_COMMON_OBJS) \
bfin-sim.o \

6
sim/common/ChangeLog

@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Make-common.in (SIM_RUN_OBJS): Change to nrun.o.
* run.c [SIM_USE_DEPRECATED_RUN_FRONTEND]: Issue a warning.
[!SIM_USE_DEPRECATED_RUN_FRONTEND]: Throw an error.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* sim-assert.h [!SIM_ASSERT, WITH_ASSERT]: Include sim-io.h.

2
sim/common/Make-common.in

@ -139,7 +139,7 @@ SIM_EXTRA_LIBS =
# List of extra program dependencies.
SIM_EXTRA_LIBDEPS =
# List of main object files for `run'.
SIM_RUN_OBJS = run.o
SIM_RUN_OBJS = nrun.o
# Dependency of `all' to build any extra files.
SIM_EXTRA_ALL =
# Dependency of `install' to install any extra files.

7
sim/common/run.c

@ -50,6 +50,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */
#include "run-sim.h"
#include "version.h"
#ifdef SIM_USE_DEPRECATED_RUN_FRONTEND
# warning "This sim is using the deprecated run.c; please migrate to nrun.c."
#else
# error "Please do not create new sim ports using run.c; use nrun.c instead." \
"New submissions using run.c will not be accepted."
#endif
static void usage (int help);
static void print_version (void);
extern int optind;

6
sim/cr16/ChangeLog

@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Add
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

6
sim/cr16/Makefile.in

@ -17,9 +17,13 @@
## COMMON_PRE_CONFIG_FRAG
# Use the deprecated run frontend until we migrate to nrun.o
SIM_RUN_OBJS = run.o
SIM_OBJS = interp.o table.o simops.o endian.o sim-load.o
SIM_EXTRA_CLEAN = clean-extra
SIM_EXTRA_CFLAGS = -DNEED_UI_LOOP_HOOK -DSIM_HAVE_ENVIRONMENT
SIM_EXTRA_CFLAGS = -DNEED_UI_LOOP_HOOK -DSIM_HAVE_ENVIRONMENT \
-DSIM_USE_DEPRECATED_RUN_FRONTEND
INCLUDE = cr16_sim.h $(srcroot)/include/gdb/callback.h targ-vals.h endian.c \
$(srcroot)/include/gdb/sim-cr16.h

4
sim/cris/ChangeLog

@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2014-12-03 Joel Brobecker <brobecker@adacore.com>
* traps.c (cris_break_13_handler): Adjust call to "fstat" callback

1
sim/cris/Makefile.in

@ -45,7 +45,6 @@ SIM_EXTRA_DEPS = \
$(CGEN_INCLUDE_DEPS) $(srccom)/cgen-ops.h \
arch.h cpuall.h cris-sim.h cris-desc.h
SIM_RUN_OBJS = nrun.o
SIM_EXTRA_CLEAN = cris-clean
# This selects the cris newlib/libgloss syscall definitions.

6
sim/d10v/ChangeLog

@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Add
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

6
sim/d10v/Makefile.in

@ -17,9 +17,13 @@
## COMMON_PRE_CONFIG_FRAG
# Use the deprecated run frontend until we migrate to nrun.o
SIM_RUN_OBJS = run.o
SIM_OBJS = interp.o table.o simops.o endian.o sim-load.o
SIM_EXTRA_CLEAN = clean-extra
SIM_EXTRA_CFLAGS = -DNEED_UI_LOOP_HOOK -DSIM_HAVE_ENVIRONMENT
SIM_EXTRA_CFLAGS = -DNEED_UI_LOOP_HOOK -DSIM_HAVE_ENVIRONMENT \
-DSIM_USE_DEPRECATED_RUN_FRONTEND
INCLUDE = d10v_sim.h $(srcroot)/include/gdb/callback.h targ-vals.h endian.c \
$(srcroot)/include/gdb/sim-d10v.h

4
sim/erc32/ChangeLog

@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Set to sis.o.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

1
sim/erc32/Makefile.in

@ -22,6 +22,7 @@ TERMCAP_LIB = @TERMCAP@
READLINE_LIB = @READLINE@
SIM_OBJS = exec.o erc32.o func.o help.o float.o interf.o
SIM_RUN_OBJS = sis.o
SIM_EXTRA_LIBS = $(READLINE_LIB) $(TERMCAP_LIB) -lm
SIM_EXTRA_ALL = sis
SIM_EXTRA_INSTALL = install-sis

4
sim/frv/ChangeLog

@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2014-08-23 Hans-Peter Nilsson <hp@axis.com>
* configure.ac: Default simulator hardware to off again. Remove

1
sim/frv/Makefile.in

@ -43,7 +43,6 @@ SIM_EXTRA_DEPS = \
SIM_EXTRA_CFLAGS = @sim_trapdump@
SIM_RUN_OBJS = nrun.o
SIM_EXTRA_CLEAN = frv-clean
# This selects the frv newlib/libgloss syscall definitions.

4
sim/h8300/ChangeLog

@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete stdlib.h & time.h.

3
sim/h8300/Makefile.in

@ -17,9 +17,6 @@
## COMMON_PRE_CONFIG_FRAG
# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o
SIM_OBJS = compile.o \
$(SIM_NEW_COMMON_OBJS) \
sim-cpu.o \

4
sim/iq2000/ChangeLog

@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2014-08-23 Hans-Peter Nilsson <hp@axis.com>
* configure.ac: Default simulator hardware to off again

1
sim/iq2000/Makefile.in

@ -44,7 +44,6 @@ SIM_EXTRA_CFLAGS =
ALL_CPU_CFLAGS = -DHAVE_CPU_IQ2000BF -DHAVE_CPU_IQ10BF
SIM_RUN_OBJS = nrun.o
SIM_EXTRA_CLEAN = iq2000-clean
## COMMON_POST_CONFIG_FRAG

4
sim/lm32/ChangeLog

@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2014-08-19 Alan Modra <amodra@gmail.com>
* configure: Regenerate.

3
sim/lm32/Makefile.in

@ -25,9 +25,6 @@ SIM_EXTRA_DEPS = $(CGEN_INCLUDE_DEPS) $(srcdir)/../../opcodes/lm32-desc.h
# List of flags to always pass to $(CC).
#SIM_EXTRA_CFLAGS =
# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o
SIM_EXTRA_CLEAN = lm32-clean
# This selects the lm32 newlib/libgloss syscall definitions.

4
sim/m32r/ChangeLog

@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2014-08-23 Hans-Peter Nilsson <hp@axis.com>
* configure.ac: Default simulator hardware to off again. Remove

1
sim/m32r/Makefile.in

@ -47,7 +47,6 @@ SIM_EXTRA_DEPS = \
SIM_EXTRA_CFLAGS = @sim_extra_cflags@
SIM_RUN_OBJS = nrun.o
SIM_EXTRA_CLEAN = m32r-clean
# This selects the m32r newlib/libgloss syscall definitions.

4
sim/m68hc11/ChangeLog

@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

3
sim/m68hc11/Makefile.in

@ -20,9 +20,6 @@
M68HC11_OBJS = interp.o m68hc11int.o m68hc12int.o \
emulos.o interrupts.o m68hc11_sim.o
# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o
SIM_OBJS = $(M68HC11_OBJS) \
$(SIM_NEW_COMMON_OBJS) \
sim-load.o \

6
sim/mcore/ChangeLog

@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Set to
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

4
sim/mcore/Makefile.in

@ -17,6 +17,10 @@
## COMMON_PRE_CONFIG_FRAG
# Use the deprecated run frontend until we migrate to nrun.o
SIM_RUN_OBJS = run.o
SIM_EXTRA_CFLAGS = -DSIM_USE_DEPRECATED_RUN_FRONTEND
SIM_OBJS = interp.o sim-load.o
SIM_EXTRA_LIBS = -lm
SIM_EXTRA_CLEAN = mcore-clean

8
sim/microblaze/ChangeLog

@ -1,3 +1,11 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Set to
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
(SIM_EXTRA_CLEAN): Delete.
(interp.o, microblaze-clean): Delete rules.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

9
sim/microblaze/Makefile.in

@ -17,12 +17,11 @@
## COMMON_PRE_CONFIG_FRAG
# Use the deprecated run frontend until we migrate to nrun.o
SIM_RUN_OBJS = run.o
SIM_EXTRA_CFLAGS = -DSIM_USE_DEPRECATED_RUN_FRONTEND
SIM_OBJS = interp.o sim-load.o
SIM_EXTRA_LIBS = -lm
SIM_EXTRA_CLEAN = microblaze-clean
## COMMON_POST_CONFIG_FRAG
interp.o: interp.c
microblaze-clean:

4
sim/mips/ChangeLog

@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

4
sim/mips/Makefile.in

@ -67,10 +67,6 @@ SIM_EXTRA_ALL = $(SIM_@sim_gen@_ALL)
SIM_EXTRA_LIBS = $(MIPS_EXTRA_LIBS)
# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o
## COMMON_POST_CONFIG_FRAG

4
sim/mn10300/ChangeLog

@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete unistd.h & stdlib.h &

3
sim/mn10300/Makefile.in

@ -31,9 +31,6 @@ MN10300_OBJS = \
SIM_OBJS = $(MN10300_OBJS) interp.o
# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o
SIM_EXTRA_CLEAN = clean-igen
# Extra dependencies for "sim-main.h"
SIM_EXTRA_DEPS = mn10300_sim.h itable.h idecode.h

6
sim/moxie/ChangeLog

@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Set to
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

4
sim/moxie/Makefile.in

@ -19,6 +19,10 @@
dtbdir = @datadir@/gdb/dtb
# Use the deprecated run frontend until we migrate to nrun.o
SIM_RUN_OBJS = run.o
SIM_EXTRA_CFLAGS = -DSIM_USE_DEPRECATED_RUN_FRONTEND
SIM_OBJS = interp.o sim-load.o sim-io.o sim-config.o sim-utils.o \
sim-options.o sim-module.o sim-core.o sim-endian.o sim-trace.o \
sim-engine.o sim-fpu.o sim-bits.o sim-profile.o sim-events.o \

4
sim/msp430/ChangeLog

@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2015-02-24 Nick Clifton <nickc@redhat.com>
* msp430-sim.c (sim_open): Allocate memory regions matching those

2
sim/msp430/Makefile.in

@ -47,8 +47,6 @@ SIM_EXTRA_CFLAGS =
SIM_EXTRA_LIBS =
# List of extra program dependencies.
SIM_EXTRA_LIBDEPS =
# List of main object files for `run'.
SIM_RUN_OBJS = nrun.o
# Dependency of `all' to build any extra files.
SIM_EXTRA_ALL =
# Dependency of `install' to install any extra files.

6
sim/sh/ChangeLog

@ -1,3 +1,9 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_EXTRA_CFLAGS): Set to
-DSIM_USE_DEPRECATED_RUN_FRONTEND.
(SIM_RUN_OBJS): Set to run.o.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete.

4
sim/sh/Makefile.in

@ -17,6 +17,10 @@
## COMMON_PRE_CONFIG_FRAG
# Use the deprecated run frontend until we migrate to nrun.o
SIM_RUN_OBJS = run.o
SIM_EXTRA_CFLAGS = -DSIM_USE_DEPRECATED_RUN_FRONTEND
SIM_OBJS = interp.o table.o sim-load.o
SIM_EXTRA_LIBS = -lm
SIM_EXTRA_CLEAN = sh-clean

4
sim/sh64/ChangeLog

@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2014-08-23 Hans-Peter Nilsson <hp@axis.com>
* configure.ac: Default simulator hardware to off again

1
sim/sh64/Makefile.in

@ -44,7 +44,6 @@ SIM_EXTRA_DEPS = \
SIM_EXTRA_CFLAGS =
SIM_RUN_OBJS = nrun.o
SIM_EXTRA_CLEAN = sh64-clean
## COMMON_POST_CONFIG_FRAG

4
sim/v850/ChangeLog

@ -1,3 +1,7 @@
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* Makefile.in (SIM_RUN_OBJS): Delete.
2015-03-14 Mike Frysinger <vapier@gentoo.org>
* configure.ac (AC_CHECK_HEADERS): Delete unistd.h & stdlib.h &

2
sim/v850/Makefile.in

@ -30,8 +30,6 @@ SIM_OBJS = \
sim-reason.o \
sim-stop.o
SIM_RUN_OBJS = nrun.o
# List of extra dependencies.
# Generally this consists of simulator specific files included by sim-main.h.
SIM_EXTRA_DEPS = v850_sim.h sim-main.h simops.h itable.h

Loading…
Cancel
Save