aboutsummaryrefslogtreecommitdiff
path: root/sim/mn10300
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-07-05 19:06:38 +0000
committerMike Frysinger <vapier@gentoo.org>2011-07-05 19:06:38 +0000
commit2419798b808521c666c29abc9b816154a979d69e (patch)
tree17bb3de27399d93aa661d0ad8622ef4a3bbc7564 /sim/mn10300
parent52cb9dfed024ca2df3a1a7f7340e7faa07321db3 (diff)
downloadgdb-2419798b808521c666c29abc9b816154a979d69e.zip
gdb-2419798b808521c666c29abc9b816154a979d69e.tar.gz
gdb-2419798b808521c666c29abc9b816154a979d69e.tar.bz2
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 <vapier@gentoo.org>
Diffstat (limited to 'sim/mn10300')
-rw-r--r--sim/mn10300/ChangeLog4
-rw-r--r--sim/mn10300/interp.c17
2 files changed, 4 insertions, 17 deletions
diff --git a/sim/mn10300/ChangeLog b/sim/mn10300/ChangeLog
index 1543b03..beb4194 100644
--- a/sim/mn10300/ChangeLog
+++ b/sim/mn10300/ChangeLog
@@ -1,3 +1,7 @@
+2011-07-05 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_do_command): Delete.
+
2011-06-20 Nick Clifton <nickc@redhat.com>
* am33.igen (sub Rm,Rn,Rd): Fix computation of carry flag.
diff --git a/sim/mn10300/interp.c b/sim/mn10300/interp.c
index 1230bf5..e06ae59 100644
--- a/sim/mn10300/interp.c
+++ b/sim/mn10300/interp.c
@@ -328,23 +328,6 @@ sim_create_inferior (SIM_DESC sd,
return SIM_RC_OK;
}
-void
-sim_do_command (SIM_DESC sd, char *cmd)
-{
- char *mm_cmd = "memory-map";
- char *int_cmd = "interrupt";
-
- if (sim_args_command (sd, cmd) != SIM_RC_OK)
- {
- 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);
- }
-}
-
/* FIXME These would more efficient to use than load_mem/store_mem,
but need to be changed to use the memory map. */