diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2015-05-06 20:57:41 +0200 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2015-05-06 20:57:41 +0200 |
commit | 851c90917fff745b94e29c1fec4f3d00ca36f598 (patch) | |
tree | 4608502e73d31219764fce2b2e2c46f2961adc15 /gdb/compile/compile.h | |
parent | 80ad801e90b5bd389ec156d37e28228fcbca128c (diff) | |
download | gdb-851c90917fff745b94e29c1fec4f3d00ca36f598.zip gdb-851c90917fff745b94e29c1fec4f3d00ca36f598.tar.gz gdb-851c90917fff745b94e29c1fec4f3d00ca36f598.tar.bz2 |
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.
Diffstat (limited to 'gdb/compile/compile.h')
-rw-r--r-- | gdb/compile/compile.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/compile/compile.h b/gdb/compile/compile.h index 1e3f934..ccb1361 100644 --- a/gdb/compile/compile.h +++ b/gdb/compile/compile.h @@ -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 |