Code cleanup: compile: Constify some parameters
gdb/ChangeLog 2015-05-06 Jan Kratochvil <jan.kratochvil@redhat.com> * compile/compile.c (compile_to_object): Make the cmd_string parameter const. Use new variables for the const compatibility. (eval_compile_command): Make the cmd_string parameter const. * compile/compile.h (eval_compile_command): Make the cmd_string parameter const.
This commit is contained in:
parent
80ad801e90
commit
851c90917f
3 changed files with 19 additions and 7 deletions
|
@ -28,7 +28,8 @@ struct dynamic_prop;
|
|||
expression command. GDB returns either a CMD, or a CMD_STRING, but
|
||||
never both. */
|
||||
|
||||
extern void eval_compile_command (struct command_line *cmd, char *cmd_string,
|
||||
extern void eval_compile_command (struct command_line *cmd,
|
||||
const char *cmd_string,
|
||||
enum compile_i_scope_types scope);
|
||||
|
||||
/* Compile a DWARF location expression to C, suitable for use by the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue