diff options
Diffstat (limited to 'sim')
35 files changed, 89 insertions, 22 deletions
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog index 7ad1e3d..69e3447 100644 --- a/sim/arm/ChangeLog +++ b/sim/arm/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * wrapper.c (sim_load): Add const to prog. + 2013-09-23 Alan Modra <amodra@gmail.com> * configure: Regenerate. diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c index 0ea9ee1..c475962 100644 --- a/sim/arm/wrapper.c +++ b/sim/arm/wrapper.c @@ -888,7 +888,7 @@ sim_close (sd, quitting) SIM_RC sim_load (sd, prog, abfd, from_tty) SIM_DESC sd; - char *prog; + const char *prog; bfd *abfd; int from_tty ATTRIBUTE_UNUSED; { diff --git a/sim/avr/ChangeLog b/sim/avr/ChangeLog index 8dd3ec5..56f79be 100644 --- a/sim/avr/ChangeLog +++ b/sim/avr/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * interp.c (sim_load): Add const to prog. + 2013-09-23 Alan Modra <amodra@gmail.com> * configure: Regenerate. @@ -13,8 +17,7 @@ 2012-05-24 Pedro Alves <palves@redhat.com> PR gdb/7205 - - Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. + * Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout. 2012-03-24 Mike Frysinger <vapier@gentoo.org> diff --git a/sim/avr/interp.c b/sim/avr/interp.c index f14514b..1ee6507 100644 --- a/sim/avr/interp.c +++ b/sim/avr/interp.c @@ -1793,7 +1793,7 @@ sim_close (SIM_DESC sd, int quitting) } SIM_RC -sim_load (SIM_DESC sd, char *prog, bfd *abfd, int from_tty) +sim_load (SIM_DESC sd, const char *prog, bfd *abfd, int from_tty) { bfd *prog_bfd; diff --git a/sim/common/ChangeLog b/sim/common/ChangeLog index 89e37ca..9bf58e2 100644 --- a/sim/common/ChangeLog +++ b/sim/common/ChangeLog @@ -1,3 +1,11 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * sim-hload.c (sim_load): Add const to prog. + * sim-load.c (sim_load_file): Likewise. + * sim-utils.c (sim_analyze_program): Likewise. + * sim-utils.h (sim_analyze_program): Likewise. + (sim_load_file): Likewise. + 2014-03-04 Mike Frysinger <vapier@gentoo.org> * acinclude.m4 (build_warnings): Copy from gdb/configure.ac. diff --git a/sim/common/sim-hload.c b/sim/common/sim-hload.c index 66a981b..b380ee0 100644 --- a/sim/common/sim-hload.c +++ b/sim/common/sim-hload.c @@ -27,7 +27,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ modeling a hardware platform. */ SIM_RC -sim_load (SIM_DESC sd, char *prog_name, struct bfd *prog_bfd, int from_tty) +sim_load (SIM_DESC sd, const char *prog_name, struct bfd *prog_bfd, int from_tty) { bfd *result_bfd; diff --git a/sim/common/sim-load.c b/sim/common/sim-load.c index f077065..7e29f6c 100644 --- a/sim/common/sim-load.c +++ b/sim/common/sim-load.c @@ -57,7 +57,7 @@ static void xprintf_bfd_vma (host_callback *, bfd_vma); bfd * sim_load_file (SIM_DESC sd, const char *myname, host_callback *callback, - char *prog, bfd *prog_bfd, int verbose_p, int lma_p, + const char *prog, bfd *prog_bfd, int verbose_p, int lma_p, sim_write_fn do_write) { asection *s; diff --git a/sim/common/sim-utils.c b/sim/common/sim-utils.c index 2ec7c7c..64291f0 100644 --- a/sim/common/sim-utils.c +++ b/sim/common/sim-utils.c @@ -211,7 +211,7 @@ sim_add_commas (char *buf, int sizeof_buf, unsigned long value) bfd open. */ SIM_RC -sim_analyze_program (SIM_DESC sd, char *prog_name, bfd *prog_bfd) +sim_analyze_program (SIM_DESC sd, const char *prog_name, bfd *prog_bfd) { asection *s; SIM_ASSERT (STATE_MAGIC (sd) == SIM_MAGIC_NUMBER); diff --git a/sim/common/sim-utils.h b/sim/common/sim-utils.h index ddb19ab..30fac1a 100644 --- a/sim/common/sim-utils.h +++ b/sim/common/sim-utils.h @@ -45,7 +45,7 @@ unsigned long sim_elapsed_time_since (SIM_ELAPSED_TIME start); /* Utilities for manipulating the load image. */ -SIM_RC sim_analyze_program (SIM_DESC sd, char *prog_name, +SIM_RC sim_analyze_program (SIM_DESC sd, const char *prog_name, struct bfd *prog_bfd); /* Load program PROG into the simulator using the function DO_LOAD. @@ -63,7 +63,7 @@ SIM_RC sim_analyze_program (SIM_DESC sd, char *prog_name, typedef int sim_write_fn (SIM_DESC sd, SIM_ADDR mem, const unsigned char *buf, int length); struct bfd *sim_load_file (SIM_DESC sd, const char *myname, - host_callback *callback, char *prog, + host_callback *callback, const char *prog, struct bfd *prog_bfd, int verbose_p, int lma_p, sim_write_fn do_load); diff --git a/sim/cr16/ChangeLog b/sim/cr16/ChangeLog index 8e32571..9903ad4 100644 --- a/sim/cr16/ChangeLog +++ b/sim/cr16/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * interp.c (sim_load): Add const to prog. + 2014-03-04 Mike Frysinger <vapier@gentoo.org> * configure: Regenerate. diff --git a/sim/cr16/interp.c b/sim/cr16/interp.c index 2ef14cb..48da916 100644 --- a/sim/cr16/interp.c +++ b/sim/cr16/interp.c @@ -1567,7 +1567,7 @@ sim_do_command (sd, cmd) } SIM_RC -sim_load (SIM_DESC sd, char *prog, struct bfd *abfd, int from_tty) +sim_load (SIM_DESC sd, const char *prog, struct bfd *abfd, int from_tty) { extern bfd *sim_load_file (); /* ??? Don't know where this should live. */ diff --git a/sim/cris/ChangeLog b/sim/cris/ChangeLog index 07d04b0..5b30229 100644 --- a/sim/cris/ChangeLog +++ b/sim/cris/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * sim-if.c (sim_load): Add const to prog. + 2014-03-04 Mike Frysinger <vapier@gentoo.org> * configure: Regenerate. diff --git a/sim/cris/sim-if.c b/sim/cris/sim-if.c index 4ecba06..325321f 100644 --- a/sim/cris/sim-if.c +++ b/sim/cris/sim-if.c @@ -343,7 +343,7 @@ cris_program_offset_write (SIM_DESC sd, SIM_ADDR mem, unsigned char *buf, files differently. */ SIM_RC -sim_load (SIM_DESC sd, char *prog_name, struct bfd *prog_bfd, +sim_load (SIM_DESC sd, const char *prog_name, struct bfd *prog_bfd, int from_tty ATTRIBUTE_UNUSED) { bfd *result_bfd; diff --git a/sim/d10v/ChangeLog b/sim/d10v/ChangeLog index 1231a5f..4a878b0 100644 --- a/sim/d10v/ChangeLog +++ b/sim/d10v/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * interp.c (sim_load): Add const to prog. + 2014-03-04 Mike Frysinger <vapier@gentoo.org> * configure: Regenerate. diff --git a/sim/d10v/interp.c b/sim/d10v/interp.c index a0b334d..f07520e 100644 --- a/sim/d10v/interp.c +++ b/sim/d10v/interp.c @@ -1490,7 +1490,7 @@ sim_do_command (sd, cmd) SIM_RC sim_load (sd, prog, abfd, from_tty) SIM_DESC sd; - char *prog; + const char *prog; bfd *abfd; int from_tty; { diff --git a/sim/erc32/ChangeLog b/sim/erc32/ChangeLog index d7266fd..1592693 100644 --- a/sim/erc32/ChangeLog +++ b/sim/erc32/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * interf.c (sim_load): Add const to prog. + 2013-10-09 Sergio Durigan Junior <sergiodj@redhat.com> PR sim/16018: diff --git a/sim/erc32/interf.c b/sim/erc32/interf.c index e2db44e..84229cd 100644 --- a/sim/erc32/interf.c +++ b/sim/erc32/interf.c @@ -290,7 +290,7 @@ sim_close(sd, quitting) SIM_RC sim_load(sd, prog, abfd, from_tty) SIM_DESC sd; - char *prog; + const char *prog; bfd *abfd; int from_tty; { diff --git a/sim/h8300/ChangeLog b/sim/h8300/ChangeLog index 38280e8..13bff7a 100644 --- a/sim/h8300/ChangeLog +++ b/sim/h8300/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * compile.c (sim_load): Add const to prog. + 2014-02-17 Mike Frysinger <vapier@gentoo.org> PR gdb/16450 diff --git a/sim/h8300/compile.c b/sim/h8300/compile.c index 2c7316c..348cdbb 100644 --- a/sim/h8300/compile.c +++ b/sim/h8300/compile.c @@ -4974,7 +4974,7 @@ sim_close (SIM_DESC sd, int quitting) /* Called by gdb to load a program into memory. */ SIM_RC -sim_load (SIM_DESC sd, char *prog, bfd *abfd, int from_tty) +sim_load (SIM_DESC sd, const char *prog, bfd *abfd, int from_tty) { bfd *prog_bfd; diff --git a/sim/m32c/ChangeLog b/sim/m32c/ChangeLog index 9cd5fb6..e202191 100644 --- a/sim/m32c/ChangeLog +++ b/sim/m32c/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * gdb-if.c (sim_load): Add const to prog. + 2013-09-23 Alan Modra <amodra@gmail.com> * configure: Regenerate. diff --git a/sim/m32c/gdb-if.c b/sim/m32c/gdb-if.c index 56e0862..bec9d48 100644 --- a/sim/m32c/gdb-if.c +++ b/sim/m32c/gdb-if.c @@ -128,7 +128,7 @@ open_objfile (const char *filename) SIM_RC -sim_load (SIM_DESC sd, char *prog, struct bfd * abfd, int from_tty) +sim_load (SIM_DESC sd, const char *prog, struct bfd * abfd, int from_tty) { check_desc (sd); diff --git a/sim/mcore/ChangeLog b/sim/mcore/ChangeLog index a034cde..c97a2c5 100644 --- a/sim/mcore/ChangeLog +++ b/sim/mcore/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * interp.c (sim_load): Add const to prog. + 2014-02-17 Mike Frysinger <vapier@gentoo.org> PR gdb/16450 diff --git a/sim/mcore/interp.c b/sim/mcore/interp.c index 72c59f7..9b08de0 100644 --- a/sim/mcore/interp.c +++ b/sim/mcore/interp.c @@ -1922,7 +1922,7 @@ sim_close (sd, quitting) SIM_RC sim_load (sd, prog, abfd, from_tty) SIM_DESC sd; - char * prog; + const char * prog; bfd * abfd; int from_tty; { diff --git a/sim/microblaze/ChangeLog b/sim/microblaze/ChangeLog index fe6add2..911a8b3 100644 --- a/sim/microblaze/ChangeLog +++ b/sim/microblaze/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * interp.c (sim_load): Add const to prog. + 2014-02-17 Mike Frysinger <vapier@gentoo.org> PR gdb/16450 diff --git a/sim/microblaze/interp.c b/sim/microblaze/interp.c index 4907b73..8fcf9d9 100644 --- a/sim/microblaze/interp.c +++ b/sim/microblaze/interp.c @@ -887,7 +887,7 @@ sim_close (SIM_DESC sd, int quitting) } SIM_RC -sim_load (SIM_DESC sd, char *prog, bfd *abfd, int from_tty) +sim_load (SIM_DESC sd, const char *prog, bfd *abfd, int from_tty) { /* Do the right thing for ELF executables; this turns out to be just about the right thing for any object format that: diff --git a/sim/moxie/ChangeLog b/sim/moxie/ChangeLog index 95daaef..33a27852 100644 --- a/sim/moxie/ChangeLog +++ b/sim/moxie/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * interp.c (sim_load): Add const to prog. + 2014-02-17 Mike Frysinger <vapier@gentoo.org> PR gdb/16450 diff --git a/sim/moxie/interp.c b/sim/moxie/interp.c index 63dc8fc..3268732 100644 --- a/sim/moxie/interp.c +++ b/sim/moxie/interp.c @@ -1230,7 +1230,7 @@ load_dtb (SIM_DESC sd, const char *filename) SIM_RC sim_load (sd, prog, abfd, from_tty) SIM_DESC sd; - char * prog; + const char * prog; bfd * abfd; int from_tty; { diff --git a/sim/ppc/ChangeLog b/sim/ppc/ChangeLog index 749ece7..3f279fe 100644 --- a/sim/ppc/ChangeLog +++ b/sim/ppc/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * sim_calls.c (sim_load): Add const to prog. + 2014-02-17 Aaro Koskinen <aaro.koskinen@iki.fi> PR gdb/12202 diff --git a/sim/ppc/sim_calls.c b/sim/ppc/sim_calls.c index a3ebba0..27ee1fe 100644 --- a/sim/ppc/sim_calls.c +++ b/sim/ppc/sim_calls.c @@ -97,7 +97,7 @@ sim_close (SIM_DESC sd, int quitting) SIM_RC -sim_load (SIM_DESC sd, char *prog, bfd *abfd, int from_tty) +sim_load (SIM_DESC sd, const char *prog, bfd *abfd, int from_tty) { TRACE(trace_gdb, ("sim_load(prog=%s, from_tty=%d) called\n", prog, from_tty)); diff --git a/sim/rl78/ChangeLog b/sim/rl78/ChangeLog index 1cf0e39..4b556cc 100644 --- a/sim/rl78/ChangeLog +++ b/sim/rl78/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * gdb-if.c (sim_load): Add const to prog. + 2013-09-23 Alan Modra <amodra@gmail.com> * configure: Regenerate. diff --git a/sim/rl78/gdb-if.c b/sim/rl78/gdb-if.c index 5dce5cd..6c4b5b5 100644 --- a/sim/rl78/gdb-if.c +++ b/sim/rl78/gdb-if.c @@ -140,7 +140,7 @@ open_objfile (const char *filename) /* Load a program. */ SIM_RC -sim_load (SIM_DESC sd, char *prog, struct bfd *abfd, int from_tty) +sim_load (SIM_DESC sd, const char *prog, struct bfd *abfd, int from_tty) { check_desc (sd); diff --git a/sim/rx/ChangeLog b/sim/rx/ChangeLog index dc2e3e5..3ce615e 100644 --- a/sim/rx/ChangeLog +++ b/sim/rx/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * gdb-if.c (sim_load): Add const to prog. + 2014-02-17 Kevin Buettner <kevinb@redhat.com> * gdb-if.c (rx_signal_to_host): Rename to diff --git a/sim/rx/gdb-if.c b/sim/rx/gdb-if.c index 4c4434c..77048a0 100644 --- a/sim/rx/gdb-if.c +++ b/sim/rx/gdb-if.c @@ -192,7 +192,7 @@ addr_in_swap_list (bfd_vma addr) } SIM_RC -sim_load (SIM_DESC sd, char *prog, struct bfd *abfd, int from_tty) +sim_load (SIM_DESC sd, const char *prog, struct bfd *abfd, int from_tty) { check_desc (sd); diff --git a/sim/sh/ChangeLog b/sim/sh/ChangeLog index 8c1b09b..d479841 100644 --- a/sim/sh/ChangeLog +++ b/sim/sh/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger <vapier@gentoo.org> + + * interp.c (sim_load): Add const to prog. + 2014-02-17 Mike Frysinger <vapier@gentoo.org> PR gdb/16450 diff --git a/sim/sh/interp.c b/sim/sh/interp.c index 5689511..cf6fd8d 100644 --- a/sim/sh/interp.c +++ b/sim/sh/interp.c @@ -2685,7 +2685,7 @@ sim_close (sd, quitting) SIM_RC sim_load (sd, prog, abfd, from_tty) SIM_DESC sd; - char *prog; + const char *prog; bfd *abfd; int from_tty; { |