diff options
Diffstat (limited to 'gdb/mi/mi-cmd-file.c')
-rw-r--r-- | gdb/mi/mi-cmd-file.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/mi/mi-cmd-file.c b/gdb/mi/mi-cmd-file.c index 70c0a78..0883cb6 100644 --- a/gdb/mi/mi-cmd-file.c +++ b/gdb/mi/mi-cmd-file.c @@ -34,7 +34,8 @@ current file being executed. */ void -mi_cmd_file_list_exec_source_file (const char *command, char **argv, int argc) +mi_cmd_file_list_exec_source_file (const char *command, + const char *const *argv, int argc) { struct symtab_and_line st; struct ui_out *uiout = current_uiout; @@ -65,7 +66,8 @@ mi_cmd_file_list_exec_source_file (const char *command, char **argv, int argc) /* Implement -file-list-exec-source-files command. */ void -mi_cmd_file_list_exec_source_files (const char *command, char **argv, int argc) +mi_cmd_file_list_exec_source_files (const char *command, + const char *const *argv, int argc) { enum opt { @@ -83,7 +85,7 @@ mi_cmd_file_list_exec_source_files (const char *command, char **argv, int argc) /* Parse arguments. */ int oind = 0; - char *oarg; + const char *oarg; bool group_by_objfile = false; bool match_on_basename = false; @@ -131,7 +133,8 @@ mi_cmd_file_list_exec_source_files (const char *command, char **argv, int argc) /* See mi-cmds.h. */ void -mi_cmd_file_list_shared_libraries (const char *command, char **argv, int argc) +mi_cmd_file_list_shared_libraries (const char *command, + const char *const *argv, int argc) { struct ui_out *uiout = current_uiout; const char *pattern; |