forked from Imagelibrary/binutils-gdb
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.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user