constify search_symbols
authorTom Tromey <tromey@redhat.com>
Thu, 28 Mar 2013 17:08:31 +0000 (11:08 -0600)
committerTom Tromey <tromey@redhat.com>
Mon, 30 Jun 2014 13:59:38 +0000 (07:59 -0600)
commit961427268a863e614a79f25449e79d54696690ad
tree9eea05fed87642cb82c24311049d41e881bbad07
parentaebf9d247e4026189a0f612ee03c19cdf4bf86ac
constify search_symbols

This constifies the parameters to search_symbols and fixes up the
fallout.

Tested by rebuilding.

2014-06-30  Tom Tromey  <tromey@redhat.com>

* symtab.c (operator_chars): Make parameters and return type
const.
(file_matches): Make "files" const.
(struct search_symbols_data) <files>: Now const.
(search_symbols): Make "regexp" and "files" parameters const.
Update.
(symtab_symbol_info): Remove cast.
(rbreak_command): Update.
* symtab.h (search_symbols): Update.
gdb/ChangeLog
gdb/symtab.c
gdb/symtab.h