diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-02-20 00:28:17 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-03-10 22:57:29 -0400 |
commit | 60d847df0b9691b7cb38bfba41b9d6aafd97efc2 (patch) | |
tree | a2fa4e54d1c4bc8a82cdc5fbd65f5958875356cf /sim/arm | |
parent | 61d1ce24e894c08a701efc5794012161ef101a60 (diff) | |
download | gdb-60d847df0b9691b7cb38bfba41b9d6aafd97efc2.zip gdb-60d847df0b9691b7cb38bfba41b9d6aafd97efc2.tar.gz gdb-60d847df0b9691b7cb38bfba41b9d6aafd97efc2.tar.bz2 |
sim: constify arg to sim_do_command
It is rare for people to want to modify the cmd arg. In general, they
really shouldn't be, but a few still do. For those who misbehave, dupe
the string locally so they can bang on it.
Diffstat (limited to 'sim/arm')
-rw-r--r-- | sim/arm/ChangeLog | 4 | ||||
-rw-r--r-- | sim/arm/wrapper.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/sim/arm/ChangeLog b/sim/arm/ChangeLog index 69e3447..9910633 100644 --- a/sim/arm/ChangeLog +++ b/sim/arm/ChangeLog @@ -1,3 +1,7 @@ +2014-03-10 Mike Frysinger <vapier@gentoo.org> + + * wrapper.c (sim_do_command): Add const to cmd. + 2014-03-05 Mike Frysinger <vapier@gentoo.org> * wrapper.c (sim_load): Add const to prog. diff --git a/sim/arm/wrapper.c b/sim/arm/wrapper.c index c475962..064962b 100644 --- a/sim/arm/wrapper.c +++ b/sim/arm/wrapper.c @@ -936,7 +936,7 @@ sim_stop_reason (sd, reason, sigrc) void sim_do_command (sd, cmd) SIM_DESC sd ATTRIBUTE_UNUSED; - char *cmd ATTRIBUTE_UNUSED; + const char *cmd ATTRIBUTE_UNUSED; { (*sim_callback->printf_filtered) (sim_callback, |