]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Constify not_just_help_class_command
authorTom Tromey <tom@tromey.com>
Sun, 10 Sep 2017 02:57:10 +0000 (20:57 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 27 Sep 2017 14:44:15 +0000 (08:44 -0600)
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.

gdb/ChangeLog
gdb/cli/cli-decode.c
gdb/cli/cli-decode.h
gdb/command.h

index 7cfd359a65947619688a6b486365fa73f1bdd9dd..7008541f2e5bc625995d82730eb2c6669e873bff 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2017-09-27  Tom Tromey  <tom@tromey.com>
 
        * gdb_bfd.c (maintenance_info_bfds): Constify.
index 257a9c4a8086dec85c0fddd727225d65f6bfb69e..f161c86ebc8c418e91647987ad52378ec5bcff59 100644 (file)
@@ -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)
 {
 }
 
index 691bfe3f8fc88370de349d38cbfa449e2b053a62..76f3ca9d7aa200042784849bc0fbe4c88accf0ac 100644 (file)
@@ -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 */
 
index 3a6c58961ad34e59148201448fed9cf17880797c..b40cd7e496885b52645d5f80010192939a4ec0e5 100644 (file)
@@ -459,7 +459,7 @@ extern scoped_restore_tmpl<int> prevent_dont_repeat (void);
    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 *, int);
+extern void not_just_help_class_command (const char *, int);
 
 /* Check function pointer.  */
 extern int cmd_func_p (struct cmd_list_element *cmd);