aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-cmds.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-cmds.h
parentbbc13ae3db19a3276ba029c838682f81d10f859a (diff)
downloadgdb-ee0475543fab82b9ea1348922c2662a8ae172116.zip
gdb-ee0475543fab82b9ea1348922c2662a8ae172116.tar.gz
gdb-ee0475543fab82b9ea1348922c2662a8ae172116.tar.bz2
* 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-cmds.h')
-rw-r--r--gdb/mi/mi-cmds.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/mi/mi-cmds.h b/gdb/mi/mi-cmds.h
index 3859a40..fdf6f9c 100644
--- a/gdb/mi/mi-cmds.h
+++ b/gdb/mi/mi-cmds.h
@@ -157,6 +157,6 @@ extern int mi_debug_p;
/* Raw console output - FIXME: should this be a parameter? */
extern struct ui_file *raw_stdout;
-extern void mi_execute_command (char *cmd, int from_tty);
+extern void mi_execute_command (const char *cmd, int from_tty);
#endif