aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>1998-02-28 02:43:31 +0000
committerDoug Evans <dje@google.com>1998-02-28 02:43:31 +0000
commit7c5d88c1bb671d64d01766531d48a1dfca8c8ee1 (patch)
tree115e8429d2e6fd2973dbd13ed486e6b6a591cd00 /sim
parent3406569f7f1641a4e329c2229c703c2f1d699cf0 (diff)
downloadgdb-7c5d88c1bb671d64d01766531d48a1dfca8c8ee1.zip
gdb-7c5d88c1bb671d64d01766531d48a1dfca8c8ee1.tar.gz
gdb-7c5d88c1bb671d64d01766531d48a1dfca8c8ee1.tar.bz2
* interp.c (DECLARE_OPTION_HANDLER): Use it.
(mips_option_handler): New argument `cpu'. (sim_open): Update call to sim_add_option_table.
Diffstat (limited to 'sim')
-rw-r--r--sim/mips/ChangeLog6
-rw-r--r--sim/mips/interp.c8
2 files changed, 12 insertions, 2 deletions
diff --git a/sim/mips/ChangeLog b/sim/mips/ChangeLog
index 8d2c5e0..bfda50a 100644
--- a/sim/mips/ChangeLog
+++ b/sim/mips/ChangeLog
@@ -1,3 +1,9 @@
+Fri Feb 27 18:41:01 1998 Doug Evans <devans@canuck.cygnus.com>
+
+ * interp.c (DECLARE_OPTION_HANDLER): Use it.
+ (mips_option_handler): New argument `cpu'.
+ (sim_open): Update call to sim_add_option_table.
+
Wed Feb 25 18:56:22 1998 Andrew Cagney <cagney@b1.cygnus.com>
* mips.igen (CxC1): Add tracing.
diff --git a/sim/mips/interp.c b/sim/mips/interp.c
index fa83966..ec9bd0c 100644
--- a/sim/mips/interp.c
+++ b/sim/mips/interp.c
@@ -155,14 +155,18 @@ FILE *tracefh = NULL;
static void open_trace PARAMS((SIM_DESC sd));
#endif /* TRACE */
+static DECLARE_OPTION_HANDLER (mips_option_handler);
+
#define OPTION_DINERO_TRACE 200
#define OPTION_DINERO_FILE 201
static SIM_RC
-mips_option_handler (sd, opt, arg)
+mips_option_handler (sd, cpu, opt, arg, is_command)
SIM_DESC sd;
+ sim_cpu *cpu;
int opt;
char *arg;
+ int is_command;
{
int cpu_nr;
switch (opt)
@@ -296,7 +300,7 @@ sim_open (kind, cb, abfd, argv)
if (sim_pre_argv_init (sd, argv[0]) != SIM_RC_OK)
return 0;
- sim_add_option_table (sd, mips_options);
+ sim_add_option_table (sd, NULL, mips_options);
/* Allocate core managed memory */