aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-03-28 11:08:31 -0600
committerTom Tromey <tromey@redhat.com>2014-06-30 07:59:38 -0600
commit961427268a863e614a79f25449e79d54696690ad (patch)
tree9eea05fed87642cb82c24311049d41e881bbad07 /gdb/symtab.h
parentaebf9d247e4026189a0f612ee03c19cdf4bf86ac (diff)
downloadgdb-961427268a863e614a79f25449e79d54696690ad.zip
gdb-961427268a863e614a79f25449e79d54696690ad.tar.gz
gdb-961427268a863e614a79f25449e79d54696690ad.tar.bz2
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.
Diffstat (limited to 'gdb/symtab.h')
-rw-r--r--gdb/symtab.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 5a6f831..399ae54 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -1356,8 +1356,8 @@ struct symbol_search
struct symbol_search *next;
};
-extern void search_symbols (char *, enum search_domain, int, char **,
- struct symbol_search **);
+extern void search_symbols (const char *, enum search_domain, int,
+ const char **, struct symbol_search **);
extern void free_search_symbols (struct symbol_search *);
extern struct cleanup *make_cleanup_free_search_symbols (struct symbol_search
**);