diff options
author | Tom Tromey <tromey@redhat.com> | 2014-07-21 20:43:04 -0600 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-07-24 11:30:04 -0600 |
commit | 64e61d290ec53c27767d0d828f01ab6ae95a7478 (patch) | |
tree | fe876ff19592c8cdec5d7f8d8e3bf9a07b5a6433 /gdb/ChangeLog | |
parent | 429e55ea941f54f8e0481dd2048dc15af751ed71 (diff) | |
download | gdb-64e61d290ec53c27767d0d828f01ab6ae95a7478.zip gdb-64e61d290ec53c27767d0d828f01ab6ae95a7478.tar.gz gdb-64e61d290ec53c27767d0d828f01ab6ae95a7478.tar.bz2 |
constify command prefix
This constifies the "prefix" argument to the various command-adding
functions.
2014-07-24 Tom Tromey <tromey@redhat.com>
* cli/cli-decode.c (print_help_for_command): Make "prefix" const.
(add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list)
(help_cmd_list): Constify.
(lookup_cmd): Update.
* cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now
const.
(help_cmd_list, apropos_cmd): Update.
* cli/cli-script.c (show_user): Update.
* cli/cli-setshow.c (cmd_show_list): Make "prefix" const.
* cli/cli-setshow.h (cmd_show_list): Update.
* command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list)
(cmd_show_list): Update.
* guile/scm-cmd.c (cmdscm_destroyer): Update.
* python/py-cmd.c (cmdpy_destroyer): Update.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r-- | gdb/ChangeLog | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ce4893c..4c9bf41 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,22 @@ 2014-07-24 Tom Tromey <tromey@redhat.com> + * cli/cli-decode.c (print_help_for_command): Make "prefix" const. + (add_prefix_cmd, add_abbrev_prefix_cmd, apropos_cmd, help_list) + (help_cmd_list): Constify. + (lookup_cmd): Update. + * cli/cli-decode.h (struct cmd_list_element) <prefixname>: Now + const. + (help_cmd_list, apropos_cmd): Update. + * cli/cli-script.c (show_user): Update. + * cli/cli-setshow.c (cmd_show_list): Make "prefix" const. + * cli/cli-setshow.h (cmd_show_list): Update. + * command.h (add_prefix_cmd, add_abbrev_prefix_cmd, help_list) + (cmd_show_list): Update. + * guile/scm-cmd.c (cmdscm_destroyer): Update. + * python/py-cmd.c (cmdpy_destroyer): Update. + +2014-07-24 Tom Tromey <tromey@redhat.com> + * cli/cli-decode.c (deprecate_cmd): Make "replacement" const. * cli/cli-decode.h (struct cmd_list_element) <replacement>: Now const. |