From: Tom Tromey Date: Tue, 12 Sep 2017 20:45:14 +0000 (-0600) Subject: Constify some commands in source.c X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a0d65762f11272996095870affe18f4c2cf354dc;p=binutils-gdb.git Constify some commands in source.c gdb/ChangeLog 2017-09-27 Tom Tromey * source.c (show_substitute_path_command) (unset_substitute_path_command, set_substitute_path_command): Constify. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bfde0e88f92..1134c5edcc2 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2017-09-27 Tom Tromey + + * source.c (show_substitute_path_command) + (unset_substitute_path_command, set_substitute_path_command): + Constify. + 2017-09-27 Tom Tromey * typeprint.c (maintenance_print_type): Constify. diff --git a/gdb/source.c b/gdb/source.c index 0564c1581b4..aa672fde45e 100644 --- a/gdb/source.c +++ b/gdb/source.c @@ -1850,7 +1850,7 @@ delete_substitute_path_rule (struct substitute_path_rule *rule) /* Implement the "show substitute-path" command. */ static void -show_substitute_path_command (char *args, int from_tty) +show_substitute_path_command (const char *args, int from_tty) { struct substitute_path_rule *rule = substitute_path_rules; char *from = NULL; @@ -1884,7 +1884,7 @@ show_substitute_path_command (char *args, int from_tty) /* Implement the "unset substitute-path" command. */ static void -unset_substitute_path_command (char *args, int from_tty) +unset_substitute_path_command (const char *args, int from_tty) { struct substitute_path_rule *rule = substitute_path_rules; gdb_argv argv (args); @@ -1935,7 +1935,7 @@ unset_substitute_path_command (char *args, int from_tty) /* Add a new source path substitution rule. */ static void -set_substitute_path_command (char *args, int from_tty) +set_substitute_path_command (const char *args, int from_tty) { struct substitute_path_rule *rule;