X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=sim%2Fcr16%2Finterp.c;h=aa03a1b23a24402ff00f54785a30d3c6f38dab5e;hb=423054beadf317757d43aefb9eddfe711a42e3e1;hp=967f1b12228dc84762039e15cd606e20204c5605;hpb=9db36cf86d58f93def38a94ed05e1854beda3b20;p=deliverable%2Fbinutils-gdb.git diff --git a/sim/cr16/interp.c b/sim/cr16/interp.c index 967f1b1222..aa03a1b23a 100644 --- a/sim/cr16/interp.c +++ b/sim/cr16/interp.c @@ -1,5 +1,5 @@ /* Simulation code for the CR16 processor. - Copyright (C) 2008-2015 Free Software Foundation, Inc. + Copyright (C) 2008-2020 Free Software Foundation, Inc. Contributed by M Ranga Swami Reddy This file is part of GDB, the GNU debugger. @@ -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; @@ -406,9 +407,7 @@ sim_open (SIM_OPEN_KIND kind, struct host_callback_struct *cb, struct bfd *abfd, return 0; } - /* getopt will print the error message so we just have to exit if this fails. - FIXME: Hmmm... in the case of gdb we need getopt to call - print_filtered. */ + /* The parser will print an error message for us, so we silently return. */ if (sim_parse_args (sd, argv) != SIM_RC_OK) { free_state (sd); @@ -647,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;