aboutsummaryrefslogtreecommitdiff
path: root/gdb/source.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-12 14:45:14 -0600
committerTom Tromey <tom@tromey.com>2017-09-27 08:44:43 -0600
commita0d65762f11272996095870affe18f4c2cf354dc (patch)
tree4e9c99172077f9b52b3f31197a7ed6844d775f11 /gdb/source.c
parent58971144622629bd11acc82b61140f8c47f0e306 (diff)
downloadgdb-a0d65762f11272996095870affe18f4c2cf354dc.zip
gdb-a0d65762f11272996095870affe18f4c2cf354dc.tar.gz
gdb-a0d65762f11272996095870affe18f4c2cf354dc.tar.bz2
Constify some commands in source.c
gdb/ChangeLog 2017-09-27 Tom Tromey <tom@tromey.com> * source.c (show_substitute_path_command) (unset_substitute_path_command, set_substitute_path_command): Constify.
Diffstat (limited to 'gdb/source.c')
-rw-r--r--gdb/source.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/source.c b/gdb/source.c
index 0564c158..aa672fd 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;