aboutsummaryrefslogtreecommitdiff
path: root/gdb/cli
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-09-09 20:57:10 -0600
committerTom Tromey <tom@tromey.com>2017-09-27 08:44:15 -0600
commiteb7c454d737322be2d810e1a5a2dc7b88fd636e6 (patch)
tree64e8621917eb34a7d086c24f3ea890a6a549181c /gdb/cli
parente4e3333549c96d2915bb888b7b347566c938e75a (diff)
downloadgdb-eb7c454d737322be2d810e1a5a2dc7b88fd636e6.zip
gdb-eb7c454d737322be2d810e1a5a2dc7b88fd636e6.tar.gz
gdb-eb7c454d737322be2d810e1a5a2dc7b88fd636e6.tar.bz2
Constify not_just_help_class_command
gdb/ChangeLog 2017-09-27 Tom Tromey <tom@tromey.com> * command.h (not_just_help_class_command): Update. * cli/cli-decode.h (not_just_help_class_command): Update. * cli/cli-decode.c (not_just_help_class_command): Constify.
Diffstat (limited to 'gdb/cli')
-rw-r--r--gdb/cli/cli-decode.c2
-rw-r--r--gdb/cli/cli-decode.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c
index 257a9c4..f161c86 100644
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -440,7 +440,7 @@ add_abbrev_prefix_cmd (const char *name, enum command_class theclass,
/* This is an empty "cfunc". */
void
-not_just_help_class_command (char *args, int from_tty)
+not_just_help_class_command (const char *args, int from_tty)
{
}
diff --git a/gdb/cli/cli-decode.h b/gdb/cli/cli-decode.h
index 691bfe3..76f3ca9 100644
--- a/gdb/cli/cli-decode.h
+++ b/gdb/cli/cli-decode.h
@@ -228,7 +228,7 @@ extern void apropos_cmd (struct ui_file *, struct cmd_list_element *,
function field NULL, the command is interpreted as a help topic, or
as a class of commands. */
-extern void not_just_help_class_command (char *arg, int from_tty);
+extern void not_just_help_class_command (const char *arg, int from_tty);
/* Exported to cli/cli-setshow.c */