diff options
Diffstat (limited to 'gdb/mi')
-rw-r--r-- | gdb/mi/mi-cmd-env.c | 4 | ||||
-rw-r--r-- | gdb/mi/mi-cmd-stack.c | 2 | ||||
-rw-r--r-- | gdb/mi/mi-cmd-var.c | 2 | ||||
-rw-r--r-- | gdb/mi/mi-main.c | 6 |
4 files changed, 7 insertions, 7 deletions
diff --git a/gdb/mi/mi-cmd-env.c b/gdb/mi/mi-cmd-env.c index a6347ee..4093178 100644 --- a/gdb/mi/mi-cmd-env.c +++ b/gdb/mi/mi-cmd-env.c @@ -116,7 +116,7 @@ mi_cmd_env_path (const char *command, char **argv, int argc) { struct ui_out *uiout = current_uiout; char *exec_path; - char *env; + const char *env; int reset = 0; int oind = 0; int i; @@ -271,7 +271,7 @@ void _initialize_mi_cmd_env (void) { struct gdb_environ *environment; - char *env; + const char *env; /* We want original execution path to reset to, if desired later. At this point, current inferior is not created, so cannot use diff --git a/gdb/mi/mi-cmd-stack.c b/gdb/mi/mi-cmd-stack.c index bb56205..bd91033 100644 --- a/gdb/mi/mi-cmd-stack.c +++ b/gdb/mi/mi-cmd-stack.c @@ -578,7 +578,7 @@ list_args_or_locals (enum what_to_list what, enum print_values values, struct block_iterator iter; struct cleanup *cleanup_list; struct type *type; - char *name_of_result; + const char *name_of_result; struct ui_out *uiout = current_uiout; block = get_frame_block (fi, 0); diff --git a/gdb/mi/mi-cmd-var.c b/gdb/mi/mi-cmd-var.c index 430c07b..78ef8e0 100644 --- a/gdb/mi/mi-cmd-var.c +++ b/gdb/mi/mi-cmd-var.c @@ -492,7 +492,7 @@ mi_cmd_var_show_attributes (const char *command, char **argv, int argc) { struct ui_out *uiout = current_uiout; int attr; - char *attstr; + const char *attstr; struct varobj *var; if (argc != 1) diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 9a87657..91fe104 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -89,7 +89,7 @@ static void mi_cmd_execute (struct mi_parse *parse); static void mi_execute_cli_command (const char *cmd, int args_p, const char *args); -static void mi_execute_async_cli_command (char *cli_command, +static void mi_execute_async_cli_command (const char *cli_command, char **argv, int argc); static int register_changed_p (int regnum, struct regcache *, struct regcache *); @@ -2031,7 +2031,7 @@ captured_mi_execute_command (struct ui_out *uiout, struct mi_parse *context) /* Echo the command on the console. */ fprintf_unfiltered (gdb_stdlog, "%s\n", context->command); /* Call the "console" interpreter. */ - argv[0] = INTERP_CONSOLE; + argv[0] = (char *) INTERP_CONSOLE; argv[1] = context->command; mi_cmd_interpreter_exec ("-interpreter-exec", argv, 2); @@ -2344,7 +2344,7 @@ mi_execute_cli_command (const char *cmd, int args_p, const char *args) } void -mi_execute_async_cli_command (char *cli_command, char **argv, int argc) +mi_execute_async_cli_command (const char *cli_command, char **argv, int argc) { struct cleanup *old_cleanups; char *run; |