+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * remote-sim.h (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2015-11-24 Nick Clifton <nickc@redhat.com>
* sim-aarch64.h: New file.
sim_create_inferior. FIXME: What should the state of the simulator
be? */
-SIM_DESC sim_open (SIM_OPEN_KIND kind, struct host_callback_struct *callback, struct bfd *abfd, char **argv);
+SIM_DESC sim_open (SIM_OPEN_KIND kind, struct host_callback_struct *callback,
+ struct bfd *abfd, char * const *argv);
/* Destory a simulator instance.
address space (according to the applicable ABI) and the program
counter and stack pointer set accordingly. */
-SIM_RC sim_create_inferior (SIM_DESC sd, struct bfd *abfd, char **argv, char **env);
+SIM_RC sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
+ char * const *argv, char * const *env);
/* Fetch LENGTH bytes of the simulated program's memory. Start fetch
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_create_inferior): Mark argv and env const.
+ (sim_open): Mark argv const.
+
2016-01-05 Mike Frysinger <vapier@gentoo.org>
* interp.c: Delete dis-asm.h include.
}
SIM_RC
-sim_create_inferior (SIM_DESC sd, struct bfd *abfd, char **argv, char **env)
+sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
+ char * const *argv, char * const *env)
{
sim_cpu *cpu = STATE_CPU (sd, 0);
long storage;
sim_open (SIM_OPEN_KIND kind,
struct host_callback_struct * callback,
struct bfd * abfd,
- char ** argv)
+ char * const * argv)
{
int i;
sim_cpu *cpu;
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * wrapper.c (sim_create_inferior): Mark argv and env const.
+ (sim_open): Mark argv const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
SIM_RC
sim_create_inferior (SIM_DESC sd ATTRIBUTE_UNUSED,
struct bfd * abfd,
- char ** argv,
- char ** env)
+ char * const *argv,
+ char * const *env)
{
int argvlen = 0;
int mach;
sim_open (SIM_OPEN_KIND kind,
host_callback *cb,
struct bfd *abfd,
- char **argv)
+ char * const *argv)
{
int i;
SIM_DESC sd = sim_state_alloc (kind, cb);
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
}
SIM_DESC
-sim_open (SIM_OPEN_KIND kind, host_callback *cb, struct bfd *abfd, char **argv)
+sim_open (SIM_OPEN_KIND kind, host_callback *cb,
+ struct bfd *abfd, char * const *argv)
{
int i;
SIM_DESC sd = sim_state_alloc (kind, cb);
}
SIM_RC
-sim_create_inferior (SIM_DESC sd, struct bfd *abfd, char **argv, char **env)
+sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
+ char * const *argv, char * const *env)
{
SIM_CPU *cpu = STATE_CPU (sd, 0);
SIM_ADDR addr;
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (bfin_syscall): Remove first const from argv.
+ (sim_open): Mark argv const.
+ (simple_env): Remove first const.
+ (bfin_user_init): Remove first const from argv and and env
+ (bfin_os_init): Remove first const from argv.
+ (sim_create_inferior): Mark argv and env const.
+ Drop casts from bfin_user_init and bfin_os_init calls.
+
2016-01-05 Mike Frysinger <vapier@gentoo.org>
* interp.c (step_once): Call TRACE_DISASM.
bfin_syscall (SIM_CPU *cpu)
{
SIM_DESC sd = CPU_STATE (cpu);
- const char * const *argv = (void *)STATE_PROG_ARGV (sd);
+ char * const *argv = (void *)STATE_PROG_ARGV (sd);
host_callback *cb = STATE_CALLBACK (sd);
bu32 args[6];
CB_SYSCALL sc;
SIM_DESC
sim_open (SIM_OPEN_KIND kind, host_callback *callback,
- struct bfd *abfd, char **argv)
+ struct bfd *abfd, char * const *argv)
{
char c;
int i;
}
/* Some utils don't like having a NULL environ. */
-static const char * const simple_env[] = { "HOME=/", "PATH=/bin", NULL };
+static char * const simple_env[] = { "HOME=/", "PATH=/bin", NULL };
static bu32 fdpic_load_offset;
static void
bfin_user_init (SIM_DESC sd, SIM_CPU *cpu, struct bfd *abfd,
- const char * const *argv, const char * const *env)
+ char * const *argv, char * const *env)
{
/* XXX: Missing host -> target endian ... */
/* Linux starts the user app with the stack:
}
static void
-bfin_os_init (SIM_DESC sd, SIM_CPU *cpu, const char * const *argv)
+bfin_os_init (SIM_DESC sd, SIM_CPU *cpu, char * const *argv)
{
/* Pass the command line via a string in R0 like Linux expects. */
int i;
SIM_RC
sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
- char **argv, char **env)
+ char * const *argv, char * const *env)
{
SIM_CPU *cpu = STATE_CPU (sd, 0);
SIM_ADDR addr;
switch (STATE_ENVIRONMENT (sd))
{
case USER_ENVIRONMENT:
- bfin_user_init (sd, cpu, abfd, (void *)argv, (void *)env);
+ bfin_user_init (sd, cpu, abfd, argv, env);
break;
case OPERATING_ENVIRONMENT:
- bfin_os_init (sd, cpu, (void *)argv);
+ bfin_os_init (sd, cpu, argv);
break;
default:
bfin_virtual_init (sd, cpu);
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-options.c (sim_parse_args): Mark argv array const.
+ * sim-options.h (sim_parse_args): Likewise.
+
2016-01-05 Mike Frysinger <vapier@gentoo.org>
* sim-trace.c: Include dis-asm.h.
/* Called by sim_open to parse the arguments. */
SIM_RC
-sim_parse_args (SIM_DESC sd, char **argv)
+sim_parse_args (SIM_DESC sd, char * const *argv)
{
int c, i, argc, num_opts, save_opterr;
char *p, *short_options;
MODULE_INSTALL_FN standard_install;
/* Called by sim_open to parse the arguments. */
-SIM_RC sim_parse_args (SIM_DESC sd, char **argv);
+SIM_RC sim_parse_args (SIM_DESC sd, char * const *argv);
/* Print help messages for the options. IS_COMMAND is non-zero when
this function is called from the command line interpreter. */
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
static int cr16_reg_store (SIM_CPU *, int, unsigned char *, int);
SIM_DESC
-sim_open (SIM_OPEN_KIND kind, struct host_callback_struct *cb, struct bfd *abfd, char **argv)
+sim_open (SIM_OPEN_KIND kind, struct host_callback_struct *cb,
+ struct bfd *abfd, char * const *argv)
{
struct simops *s;
struct hash_entry *h;
}
SIM_RC
-sim_create_inferior (SIM_DESC sd, struct bfd *abfd, char **argv, char **env)
+sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
+ char * const *argv, char * const *env)
{
bfd_vma start_address;
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-if.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
SIM_DESC
sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
- char **argv)
+ char * const *argv)
{
char c;
int i;
\f
SIM_RC
sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
- char **argv ATTRIBUTE_UNUSED,
- char **envp ATTRIBUTE_UNUSED)
+ char * const *argv ATTRIBUTE_UNUSED,
+ char * const *envp ATTRIBUTE_UNUSED)
{
SIM_CPU *current_cpu = STATE_CPU (sd, 0);
SIM_ADDR addr;
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* endian.c (get_word): Delete all arch/big endian logic.
static int d10v_reg_store (SIM_CPU *, int, unsigned char *, int);
SIM_DESC
-sim_open (SIM_OPEN_KIND kind, host_callback *cb, struct bfd *abfd, char **argv)
+sim_open (SIM_OPEN_KIND kind, host_callback *cb,
+ struct bfd *abfd, char * const *argv)
{
struct simops *s;
struct hash_entry *h;
}
SIM_RC
-sim_create_inferior (SIM_DESC sd, struct bfd *abfd, char **argv, char **env)
+sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
+ char * const *argv, char * const *env)
{
bfd_vma start_address;
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * interf.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
SIM_OPEN_KIND kind;
struct host_callback_struct *callback;
struct bfd *abfd;
- char **argv;
+ char * const *argv;
{
int argc = 0;
sim_create_inferior(sd, abfd, argv, env)
SIM_DESC sd;
struct bfd *abfd;
- char **argv;
- char **env;
+ char * const *argv;
+ char * const *env;
{
bfd_vma start_address = 0;
if (abfd != NULL)
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-if.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
SIM_OPEN_KIND kind;
host_callback *callback;
bfd *abfd;
- char **argv;
+ char * const *argv;
{
char c;
int i;
sim_create_inferior (sd, abfd, argv, envp)
SIM_DESC sd;
bfd *abfd;
- char **argv;
- char **envp;
+ char * const *argv;
+ char * const *envp;
{
SIM_CPU *current_cpu = STATE_CPU (sd, 0);
SIM_ADDR addr;
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
sim_open (SIM_OPEN_KIND kind,
host_callback *cb,
struct bfd *abfd,
- char **argv)
+ char * const *argv)
{
char c;
size_t i;
SIM_RC
sim_create_inferior (SIM_DESC sd,
struct bfd *abfd,
- char **argv,
- char **env)
+ char * const *argv,
+ char * const *env)
{
uint32_t addr;
sim_cpu *cpu = STATE_CPU (sd, 0);
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * compile.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
sim_open (SIM_OPEN_KIND kind,
struct host_callback_struct *callback,
struct bfd *abfd,
- char **argv)
+ char * const *argv)
{
int i;
SIM_DESC sd;
}
SIM_RC
-sim_create_inferior (SIM_DESC sd, struct bfd *abfd, char **argv, char **env)
+sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
+ char * const *argv, char * const *env)
{
int i = 0;
int len_arg = 0;
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-if.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
SIM_OPEN_KIND kind;
host_callback *callback;
struct bfd *abfd;
- char **argv;
+ char * const *argv;
{
char c;
int i;
sim_create_inferior (sd, abfd, argv, envp)
SIM_DESC sd;
struct bfd *abfd;
- char **argv;
- char **envp;
+ char * const *argv;
+ char * const *envp;
{
SIM_CPU *current_cpu = STATE_CPU (sd, 0);
SIM_ADDR addr;
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-if.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
SIM_OPEN_KIND kind;
host_callback *callback;
struct bfd *abfd;
- char **argv;
+ char * const *argv;
{
SIM_DESC sd = sim_state_alloc (kind, callback);
char c;
sim_create_inferior (sd, abfd, argv, envp)
SIM_DESC sd;
struct bfd *abfd;
- char **argv;
- char **envp;
+ char * const *argv;
+ char * const *envp;
{
SIM_CPU *current_cpu = STATE_CPU (sd, 0);
SIM_ADDR addr;
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-if.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
SIM_DESC
sim_open (SIM_OPEN_KIND kind,
struct host_callback_struct *callback,
- struct bfd *abfd, char **argv)
+ struct bfd *abfd, char * const *argv)
{
setbuf (stdout, 0);
if (open)
}
SIM_RC
-sim_create_inferior (SIM_DESC sd, struct bfd * abfd, char **argv, char **env)
+sim_create_inferior (SIM_DESC sd, struct bfd * abfd,
+ char * const *argv, char * const *env)
{
check_desc (sd);
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-if.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
SIM_OPEN_KIND kind;
host_callback *callback;
struct bfd *abfd;
- char **argv;
+ char * const *argv;
{
SIM_DESC sd = sim_state_alloc (kind, callback);
char c;
sim_create_inferior (sd, abfd, argv, envp)
SIM_DESC sd;
struct bfd *abfd;
- char **argv;
- char **envp;
+ char * const *argv;
+ char * const *envp;
{
SIM_CPU *current_cpu = STATE_CPU (sd, 0);
SIM_ADDR addr;
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
SIM_DESC
sim_open (SIM_OPEN_KIND kind, host_callback *callback,
- bfd *abfd, char **argv)
+ bfd *abfd, char * const *argv)
{
int i;
SIM_DESC sd;
SIM_RC
sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
- char **argv, char **env)
+ char * const *argv, char * const *env)
{
return sim_prepare_for_program (sd, abfd);
}
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
}
SIM_DESC
-sim_open (SIM_OPEN_KIND kind, host_callback *cb, struct bfd *abfd, char **argv)
+sim_open (SIM_OPEN_KIND kind, host_callback *cb,
+ struct bfd *abfd, char * const *argv)
{
int i;
SIM_DESC sd = sim_state_alloc (kind, cb);
}
SIM_RC
-sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd, char **argv, char **env)
+sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd,
+ char * const *argv, char * const *env)
{
SIM_CPU *cpu = STATE_CPU (sd, 0);
char ** avp;
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
}
SIM_DESC
-sim_open (SIM_OPEN_KIND kind, host_callback *cb, struct bfd *abfd, char **argv)
+sim_open (SIM_OPEN_KIND kind, host_callback *cb,
+ struct bfd *abfd, char * const *argv)
{
int i;
SIM_DESC sd = sim_state_alloc (kind, cb);
}
SIM_RC
-sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd, char **argv, char **env)
+sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd,
+ char * const *argv, char * const *env)
{
SIM_CPU *cpu = STATE_CPU (sd, 0);
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
static int mips_reg_store (SIM_CPU *, int, unsigned char *, int);
SIM_DESC
-sim_open (SIM_OPEN_KIND kind, host_callback *cb, struct bfd *abfd, char **argv)
+sim_open (SIM_OPEN_KIND kind, host_callback *cb,
+ struct bfd *abfd, char * const *argv)
{
int i;
SIM_DESC sd = sim_state_alloc (kind, cb);
}
SIM_RC
-sim_create_inferior (SIM_DESC sd, struct bfd *abfd, char **argv, char **env)
+sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
+ char * const *argv, char * const *env)
{
#ifdef DEBUG
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
sim_open (SIM_OPEN_KIND kind,
host_callback *cb,
struct bfd *abfd,
- char **argv)
+ char * const *argv)
{
int i;
SIM_DESC sd = sim_state_alloc (kind, cb);
SIM_RC
sim_create_inferior (SIM_DESC sd,
struct bfd *prog_bfd,
- char **argv,
- char **env)
+ char * const *argv,
+ char * const *env)
{
memset (&State, 0, sizeof (State));
if (prog_bfd != NULL) {
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
}
SIM_DESC
-sim_open (SIM_OPEN_KIND kind, host_callback *cb, struct bfd *abfd, char **argv)
+sim_open (SIM_OPEN_KIND kind, host_callback *cb,
+ struct bfd *abfd, char * const *argv)
{
int i;
SIM_DESC sd = sim_state_alloc (kind, cb);
}
SIM_RC
-sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd, char **argv, char **env)
+sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd,
+ char * const *argv, char * const *env)
{
char ** avp;
int l, argc, i, tp;
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * msp430-sim.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-05 Mike Frysinger <vapier@gentoo.org>
* msp430-sim.c (loader_write_mem): Delete.
sim_open (SIM_OPEN_KIND kind,
struct host_callback_struct *callback,
struct bfd *abfd,
- char **argv)
+ char * const *argv)
{
SIM_DESC sd = sim_state_alloc (kind, callback);
char c;
SIM_RC
sim_create_inferior (SIM_DESC sd,
struct bfd *abfd,
- char **argv,
- char **env)
+ char * const *argv,
+ char * const *env)
{
unsigned char resetv[2];
int c;
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * sim_calls.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure.ac (sim-bswap): Delete.
sim_open (SIM_OPEN_KIND kind,
host_callback *callback,
struct bfd *abfd,
- char **argv)
+ char * const *argv)
{
callbacks = callback;
SIM_RC
sim_create_inferior (SIM_DESC sd,
struct bfd *abfd,
- char **argv,
- char **envp)
+ char * const *argv,
+ char * const *envp)
{
unsigned_word entry_point;
TRACE(trace_gdb, ("sim_create_inferior(start_address=0x%x, ...)\n",
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * gdb-if.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
SIM_DESC
sim_open (SIM_OPEN_KIND kind,
struct host_callback_struct *callback,
- struct bfd *abfd, char **argv)
+ struct bfd *abfd, char * const *argv)
{
if (open)
fprintf (stderr, "rl78 minisim: re-opened sim\n");
/* Create inferior. */
SIM_RC
-sim_create_inferior (SIM_DESC sd, struct bfd *abfd, char **argv, char **env)
+sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
+ char * const *argv, char * const *env)
{
check_desc (sd);
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * gdb-if.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
SIM_DESC
sim_open (SIM_OPEN_KIND kind,
struct host_callback_struct *callback,
- struct bfd *abfd, char **argv)
+ struct bfd *abfd, char * const *argv)
{
if (rx_sim_is_open)
fprintf (stderr, "rx minisim: re-opened sim\n");
}
SIM_RC
-sim_create_inferior (SIM_DESC sd, struct bfd *abfd, char **argv, char **env)
+sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
+ char * const *argv, char * const *env)
{
check_desc (sd);
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
}
SIM_DESC
-sim_open (SIM_OPEN_KIND kind, host_callback *cb, struct bfd *abfd, char **argv)
+sim_open (SIM_OPEN_KIND kind, host_callback *cb,
+ struct bfd *abfd, char * const *argv)
{
char **p;
int i;
}
SIM_RC
-sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd, char **argv, char **env)
+sim_create_inferior (SIM_DESC sd, struct bfd *prog_bfd,
+ char * const *argv, char * const *env)
{
/* Clear the registers. */
memset (&saved_state, 0,
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * sim-if.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
SIM_OPEN_KIND kind;
host_callback *callback;
struct bfd *abfd;
- char **argv;
+ char * const *argv;
{
char c;
int i;
sim_create_inferior (sd, abfd, argv, envp)
SIM_DESC sd;
struct bfd *abfd;
- char **argv;
- char **envp;
+ char * const *argv;
+ char * const *envp;
{
SIM_CPU *current_cpu = STATE_CPU (sd, 0);
SIM_ADDR addr;
+2016-01-06 Mike Frysinger <vapier@gentoo.org>
+
+ * interp.c (sim_open): Mark argv const.
+ (sim_create_inferior): Mark argv and env const.
+
2016-01-04 Mike Frysinger <vapier@gentoo.org>
* configure: Regenerate.
sim_open (SIM_OPEN_KIND kind,
host_callback * cb,
struct bfd * abfd,
- char ** argv)
+ char * const * argv)
{
int i;
SIM_DESC sd = sim_state_alloc (kind, cb);
SIM_RC
sim_create_inferior (SIM_DESC sd,
struct bfd * prog_bfd,
- char ** argv,
- char ** env)
+ char * const *argv,
+ char * const *env)
{
memset (&State, 0, sizeof (State));
if (prog_bfd != NULL)