constify command docs
authorTom Tromey <tromey@redhat.com>
Tue, 22 Jul 2014 02:55:16 +0000 (20:55 -0600)
committerTom Tromey <tromey@redhat.com>
Thu, 24 Jul 2014 17:30:04 +0000 (11:30 -0600)
commit1947513d924efec8b839718cda515ecfc21dd293
treee17abaf26f4b93304057f1b27707392ade406d3e
parent64e61d290ec53c27767d0d828f01ab6ae95a7478
constify command docs

This makes the command "doc" parameter const.

2014-07-24  Tom Tromey  <tromey@redhat.com>

* cli/cli-decode.c (add_cmd, add_prefix_cmd)
(add_abbrev_prefix_cmd, add_set_or_show_cmd, add_info)
(add_info_alias, add_com): Make "doc" const.
(print_doc_line): Make "str" const.
(delete_cmd): Update.
* cli/cli-decode.h (struct cmd_list_element) <doc>: Now const.
(print_doc_line): Update.
* cli/cli-script.c (document_command): Update.
* command.h (add_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
(add_com, add_info, add_info_alias): Update.
* guile/scm-cmd.c (cmdscm_destroyer): Update.
* python/py-cmd.c (cmdpy_destroyer): Update.
gdb/ChangeLog
gdb/cli/cli-decode.c
gdb/cli/cli-decode.h
gdb/cli/cli-script.c
gdb/command.h
gdb/guile/scm-cmd.c
gdb/python/py-cmd.c
gdb/value.c