summaryrefslogtreecommitdiff
path: root/gdb/mi/mi-parse.h
diff options
context:
space:
mode:
authorKeith Seitz <keiths@redhat.com>2013-03-12 18:50:39 +0000
committerKeith Seitz <keiths@redhat.com>2013-03-12 18:50:39 +0000
commitee0475543fab82b9ea1348922c2662a8ae172116 (patch)
treedb4e5ad05c7bf02712c91f43bc8acc8a966542f3 /gdb/mi/mi-parse.h
parentbbc13ae3db19a3276ba029c838682f81d10f859a (diff)
downloadbinutils-gdb-ee0475543fab82b9ea1348922c2662a8ae172116.tar.gz
* mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
* mi/mi-interp.c (mi_interpreter_exec): Make "command" const. Remove temporary copy of input string. (mi_execute_command_wrapper): Make "cmd" const. * mi/mi-main.c (mi_execute_command): Make "string_ptr" const. * mi/mi-parse.c (mi_parse_argv): Make "args" const. Use const strings. (mi_parse): Make "cmd" const. Use const strings. * mi/mi-parse.h (mi_parse): Make "cmd" const.
Diffstat (limited to 'gdb/mi/mi-parse.h')
-rw-r--r--gdb/mi/mi-parse.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mi/mi-parse.h b/gdb/mi/mi-parse.h
index 0dd1815b13b..324ae5d9136 100644
--- a/gdb/mi/mi-parse.h
+++ b/gdb/mi/mi-parse.h
@@ -60,7 +60,7 @@ struct mi_parse
the TOKEN field of the resultant mi_parse object, to be freed by
mi_parse_free. */
-extern struct mi_parse *mi_parse (char *cmd, char **token);
+extern struct mi_parse *mi_parse (const char *cmd, char **token);
/* Free a command returned by mi_parse_command. */