sim: sim_{create_inferior,open,parse_args}: constify argv/env slightly
2016-01-03 Mike Frysinger <vapier@gentoo.org> * sim-options.c (sim_parse_args): Mark argv array const. * sim-options.h (sim_parse_args): Likewise.
This commit is contained in:
parent
23ad6f3ec4
commit
2e3d4f4d5d
61 changed files with 257 additions and 79 deletions
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -104,7 +104,8 @@ struct host_callback_struct;
|
|||
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.
|
||||
|
@ -161,7 +162,8 @@ SIM_RC sim_load (SIM_DESC sd, const char *prog, struct bfd *abfd, int from_tty);
|
|||
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
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -131,7 +131,8 @@ aarch64_get_sym_value (const char *name)
|
|||
}
|
||||
|
||||
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;
|
||||
|
@ -329,7 +330,7 @@ SIM_DESC
|
|||
sim_open (SIM_OPEN_KIND kind,
|
||||
struct host_callback_struct * callback,
|
||||
struct bfd * abfd,
|
||||
char ** argv)
|
||||
char * const * argv)
|
||||
{
|
||||
int i;
|
||||
sim_cpu *cpu;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -229,8 +229,8 @@ sim_resume (SIM_DESC sd ATTRIBUTE_UNUSED,
|
|||
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;
|
||||
|
@ -800,7 +800,7 @@ SIM_DESC
|
|||
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);
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -1678,7 +1678,8 @@ free_state (SIM_DESC sd)
|
|||
}
|
||||
|
||||
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);
|
||||
|
@ -1756,7 +1757,8 @@ sim_open (SIM_OPEN_KIND kind, host_callback *cb, struct bfd *abfd, char **argv)
|
|||
}
|
||||
|
||||
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;
|
||||
|
|
|
@ -1,3 +1,13 @@
|
|||
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.
|
||||
|
|
|
@ -119,7 +119,7 @@ void
|
|||
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;
|
||||
|
@ -716,7 +716,7 @@ bfin_initialize_cpu (SIM_DESC sd, SIM_CPU *cpu)
|
|||
|
||||
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;
|
||||
|
@ -807,7 +807,7 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback,
|
|||
}
|
||||
|
||||
/* 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;
|
||||
|
||||
|
@ -965,7 +965,7 @@ bfin_fdpic_load (SIM_DESC sd, SIM_CPU *cpu, struct bfd *abfd, bu32 *sp,
|
|||
|
||||
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:
|
||||
|
@ -1147,7 +1147,7 @@ bfin_user_init (SIM_DESC sd, SIM_CPU *cpu, struct bfd *abfd,
|
|||
}
|
||||
|
||||
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;
|
||||
|
@ -1184,7 +1184,7 @@ bfin_virtual_init (SIM_DESC sd, SIM_CPU *cpu)
|
|||
|
||||
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;
|
||||
|
@ -1209,10 +1209,10 @@ sim_create_inferior (SIM_DESC sd, struct bfd *abfd,
|
|||
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);
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -458,7 +458,7 @@ dup_arg_p (const char *arg)
|
|||
/* 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;
|
||||
|
|
|
@ -135,7 +135,7 @@ SIM_RC sim_add_option_table (SIM_DESC sd, sim_cpu *cpu, const OPTION *table);
|
|||
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. */
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -383,7 +383,8 @@ static int cr16_reg_fetch (SIM_CPU *, int, unsigned char *, int);
|
|||
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;
|
||||
|
@ -645,7 +646,8 @@ sim_engine_run (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)
|
||||
{
|
||||
bfd_vma start_address;
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -617,7 +617,7 @@ cris_handle_interpreter (SIM_DESC sd, struct bfd *abfd)
|
|||
|
||||
SIM_DESC
|
||||
sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
|
||||
char **argv)
|
||||
char * const *argv)
|
||||
{
|
||||
char c;
|
||||
int i;
|
||||
|
@ -959,8 +959,8 @@ sim_open (SIM_OPEN_KIND kind, host_callback *callback, struct bfd *abfd,
|
|||
|
||||
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;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -746,7 +746,8 @@ static int d10v_reg_fetch (SIM_CPU *, int, unsigned char *, int);
|
|||
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;
|
||||
|
@ -1141,7 +1142,8 @@ sim_info (SIM_DESC sd, int verbose)
|
|||
}
|
||||
|
||||
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;
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -162,7 +162,7 @@ sim_open (kind, callback, abfd, argv)
|
|||
SIM_OPEN_KIND kind;
|
||||
struct host_callback_struct *callback;
|
||||
struct bfd *abfd;
|
||||
char **argv;
|
||||
char * const *argv;
|
||||
{
|
||||
|
||||
int argc = 0;
|
||||
|
@ -288,8 +288,8 @@ SIM_RC
|
|||
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)
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -49,7 +49,7 @@ sim_open (kind, callback, abfd, argv)
|
|||
SIM_OPEN_KIND kind;
|
||||
host_callback *callback;
|
||||
bfd *abfd;
|
||||
char **argv;
|
||||
char * const *argv;
|
||||
{
|
||||
char c;
|
||||
int i;
|
||||
|
@ -191,8 +191,8 @@ SIM_RC
|
|||
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;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -788,7 +788,7 @@ SIM_DESC
|
|||
sim_open (SIM_OPEN_KIND kind,
|
||||
host_callback *cb,
|
||||
struct bfd *abfd,
|
||||
char **argv)
|
||||
char * const *argv)
|
||||
{
|
||||
char c;
|
||||
size_t i;
|
||||
|
@ -863,8 +863,8 @@ sim_open (SIM_OPEN_KIND kind,
|
|||
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);
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -4826,7 +4826,7 @@ SIM_DESC
|
|||
sim_open (SIM_OPEN_KIND kind,
|
||||
struct host_callback_struct *callback,
|
||||
struct bfd *abfd,
|
||||
char **argv)
|
||||
char * const *argv)
|
||||
{
|
||||
int i;
|
||||
SIM_DESC sd;
|
||||
|
@ -5000,7 +5000,8 @@ sim_load (SIM_DESC sd, const char *prog, bfd *abfd, int from_tty)
|
|||
}
|
||||
|
||||
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;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -54,7 +54,7 @@ sim_open (kind, callback, abfd, argv)
|
|||
SIM_OPEN_KIND kind;
|
||||
host_callback *callback;
|
||||
struct bfd *abfd;
|
||||
char **argv;
|
||||
char * const *argv;
|
||||
{
|
||||
char c;
|
||||
int i;
|
||||
|
@ -142,8 +142,8 @@ SIM_RC
|
|||
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;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -101,7 +101,7 @@ sim_open (kind, callback, abfd, argv)
|
|||
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;
|
||||
|
@ -210,8 +210,8 @@ SIM_RC
|
|||
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;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -60,7 +60,7 @@ static int open;
|
|||
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)
|
||||
|
@ -144,7 +144,8 @@ sim_load (SIM_DESC sd, const char *prog, struct bfd * abfd, int from_tty)
|
|||
}
|
||||
|
||||
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);
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -56,7 +56,7 @@ sim_open (kind, callback, abfd, argv)
|
|||
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;
|
||||
|
@ -162,8 +162,8 @@ SIM_RC
|
|||
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;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -418,7 +418,7 @@ static int m68hc11_reg_store (SIM_CPU *, int, unsigned char *, int);
|
|||
|
||||
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;
|
||||
|
@ -547,7 +547,7 @@ sim_info (SIM_DESC sd, int verbose)
|
|||
|
||||
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);
|
||||
}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -1341,7 +1341,8 @@ free_state (SIM_DESC sd)
|
|||
}
|
||||
|
||||
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);
|
||||
|
@ -1413,7 +1414,8 @@ sim_open (SIM_OPEN_KIND kind, host_callback *cb, struct bfd *abfd, char **argv)
|
|||
}
|
||||
|
||||
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;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -385,7 +385,8 @@ free_state (SIM_DESC sd)
|
|||
}
|
||||
|
||||
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);
|
||||
|
@ -457,7 +458,8 @@ sim_open (SIM_OPEN_KIND kind, host_callback *cb, struct bfd *abfd, char **argv)
|
|||
}
|
||||
|
||||
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);
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -346,7 +346,8 @@ static int mips_reg_fetch (SIM_CPU *, int, unsigned char *, int);
|
|||
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);
|
||||
|
@ -999,7 +1000,8 @@ mips_reg_fetch (SIM_CPU *cpu, int rn, unsigned char *memory, int length)
|
|||
}
|
||||
|
||||
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
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -95,7 +95,7 @@ SIM_DESC
|
|||
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);
|
||||
|
@ -321,8 +321,8 @@ sim_open (SIM_OPEN_KIND kind,
|
|||
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) {
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -1172,7 +1172,8 @@ free_state (SIM_DESC sd)
|
|||
}
|
||||
|
||||
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);
|
||||
|
@ -1275,7 +1276,8 @@ load_dtb (SIM_DESC sd, const char *filename)
|
|||
}
|
||||
|
||||
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;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -137,7 +137,7 @@ SIM_DESC
|
|||
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;
|
||||
|
@ -224,8 +224,8 @@ msp430_sim_close (SIM_DESC sd, int quitting)
|
|||
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;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -63,7 +63,7 @@ SIM_DESC
|
|||
sim_open (SIM_OPEN_KIND kind,
|
||||
host_callback *callback,
|
||||
struct bfd *abfd,
|
||||
char **argv)
|
||||
char * const *argv)
|
||||
{
|
||||
callbacks = callback;
|
||||
|
||||
|
@ -165,8 +165,8 @@ sim_info (SIM_DESC sd, int verbose)
|
|||
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",
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -64,7 +64,7 @@ static struct host_callback_struct *host_callbacks;
|
|||
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");
|
||||
|
@ -188,7 +188,8 @@ sim_load (SIM_DESC sd, const char *prog, struct bfd *abfd, int from_tty)
|
|||
/* 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);
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -59,7 +59,7 @@ static int rx_sim_is_open;
|
|||
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");
|
||||
|
@ -208,7 +208,8 @@ sim_load (SIM_DESC sd, const char *prog, struct bfd *abfd, int from_tty)
|
|||
}
|
||||
|
||||
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);
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -2378,7 +2378,8 @@ free_state (SIM_DESC sd)
|
|||
}
|
||||
|
||||
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;
|
||||
|
@ -2483,7 +2484,8 @@ parse_and_set_memory_size (SIM_DESC sd, const char *str)
|
|||
}
|
||||
|
||||
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,
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -51,7 +51,7 @@ sim_open (kind, callback, abfd, argv)
|
|||
SIM_OPEN_KIND kind;
|
||||
host_callback *callback;
|
||||
struct bfd *abfd;
|
||||
char **argv;
|
||||
char * const *argv;
|
||||
{
|
||||
char c;
|
||||
int i;
|
||||
|
@ -148,8 +148,8 @@ SIM_RC
|
|||
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;
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
|
@ -195,7 +195,7 @@ SIM_DESC
|
|||
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);
|
||||
|
@ -309,8 +309,8 @@ sim_open (SIM_OPEN_KIND kind,
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue