From b2b255bdf3d29d97c10668b4bb5fceeb886a15f1 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 20 Feb 2014 00:13:48 -0500 Subject: sim: constify prog_name There's no need for the prog_name handed down to the core to be mutable, so add const markings to it and all the related funcs. --- sim/microblaze/ChangeLog | 4 ++++ sim/microblaze/interp.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'sim/microblaze') diff --git a/sim/microblaze/ChangeLog b/sim/microblaze/ChangeLog index fe6add2c77d..911a8b3769b 100644 --- a/sim/microblaze/ChangeLog +++ b/sim/microblaze/ChangeLog @@ -1,3 +1,7 @@ +2014-03-05 Mike Frysinger + + * interp.c (sim_load): Add const to prog. + 2014-02-17 Mike Frysinger PR gdb/16450 diff --git a/sim/microblaze/interp.c b/sim/microblaze/interp.c index 4907b7383d5..8fcf9d964cd 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: -- cgit v1.2.1