[RFA] Constify mi_interpreter_exec and remove dup

Tom Tromey tromey@redhat.com
Tue Mar 12 18:06:00 GMT 2013


>>>>> "Keith" == Keith Seitz <keiths@redhat.com> writes:

Keith> 2013-03-12  Keith Seitz  <keiths@redhat.com>
Keith> 	* mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
Keith> 	* mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
Keith> 	Remove temporary copy of input string.
Keith> 	(mi_execute_command_wrapper): Make "cmd" const.
Keith> 	* mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
Keith> 	(mi_parse_argv): Make "args" const.
Keith> 	Use const strings.
Keith> 	(mi_parse): Make "cmd" const.
Keith> 	Use const strings.
Keith> 	* mi/mi-parse.h (mi_parse): Make "cmd" const.

This is ok.  Thanks. 

Tom



More information about the Gdb-patches mailing list