From 2419798b808521c666c29abc9b816154a979d69e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 5 Jul 2011 19:06:38 +0000 Subject: sim: start a unified sim_do_command Since sim_do_command for many people simply calls sim_args_command, start a unified version of it. For people who handle their own options, they could switch to this by using sim_add_option_table instead. Signed-off-by: Mike Frysinger --- sim/m68hc11/ChangeLog | 4 ++++ sim/m68hc11/interp.c | 27 --------------------------- 2 files changed, 4 insertions(+), 27 deletions(-) (limited to 'sim/m68hc11') diff --git a/sim/m68hc11/ChangeLog b/sim/m68hc11/ChangeLog index 295173e..fe2f74a 100644 --- a/sim/m68hc11/ChangeLog +++ b/sim/m68hc11/ChangeLog @@ -1,3 +1,7 @@ +2011-07-05 Mike Frysinger + + * interp.c (sim_do_command): Delete. + 2010-01-09 Ralf Wildenhues * configure: Regenerate. diff --git a/sim/m68hc11/interp.c b/sim/m68hc11/interp.c index b4d17c3..d391286 100644 --- a/sim/m68hc11/interp.c +++ b/sim/m68hc11/interp.c @@ -711,33 +711,6 @@ sim_size (int s) ; } -void -sim_do_command (SIM_DESC sd, char *cmd) -{ - char *mm_cmd = "memory-map"; - char *int_cmd = "interrupt"; - sim_cpu *cpu; - - cpu = STATE_CPU (sd, 0); - /* Commands available from GDB: */ - if (sim_args_command (sd, cmd) != SIM_RC_OK) - { - if (strncmp (cmd, "info", sizeof ("info") - 1) == 0) - sim_get_info (sd, &cmd[4]); - else if (strncmp (cmd, mm_cmd, strlen (mm_cmd) == 0)) - sim_io_eprintf (sd, - "`memory-map' command replaced by `sim memory'\n"); - else if (strncmp (cmd, int_cmd, strlen (int_cmd)) == 0) - sim_io_eprintf (sd, "`interrupt' command replaced by `sim watch'\n"); - else - sim_io_eprintf (sd, "Unknown command `%s'\n", cmd); - } - - /* If the architecture changed, re-configure. */ - if (STATE_ARCHITECTURE (sd) != cpu->cpu_configured_arch) - sim_hw_configure (sd); -} - /* Halt the simulator after just one instruction */ static void -- cgit v1.1