diff options
author | Tom Tromey <tromey@adacore.com> | 2019-07-12 13:34:52 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-09-10 08:30:45 -0600 |
commit | b054970d54e141e5d2c824223772685742af2c2a (patch) | |
tree | 3542155421525de7fb5cafd2f71d516768138a8b /gdb/dwarf2read.c | |
parent | 6a3dbf1bc620ae068c84074b2f72e11c24dc1e6d (diff) | |
download | gdb-b054970d54e141e5d2c824223772685742af2c2a.zip gdb-b054970d54e141e5d2c824223772685742af2c2a.tar.gz gdb-b054970d54e141e5d2c824223772685742af2c2a.tar.bz2 |
Change map_matching_symbols to take a lookup_name_info
This patch further simplifies the map_matching_symbols callback, by
having it take a lookup_name_info rather than a plain string.
gdb/ChangeLog
2019-09-10 Tom Tromey <tromey@adacore.com>
* ada-lang.c (add_nonlocal_symbols): Combine calls to
map_matching_symbols. Update.
* dwarf2read.c (dw2_map_matching_symbols): Update.
* psymtab.c (match_partial_symbol): Change type; update.
(psym_map_matching_symbols): Likewise.
* symfile-debug.c (debug_qf_map_matching_symbols): Change
type; update.
* symfile.h (struct quick_symbol_functions)
<map_matching_symbols>: Change "name" to be a lookup_name_info.
Remove "match".
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index cccc493..d57684b 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -4186,10 +4186,9 @@ dw2_expand_symtabs_with_fullname (struct objfile *objfile, static void dw2_map_matching_symbols (struct objfile *objfile, - const char * name, domain_enum domain, + const lookup_name_info &name, domain_enum domain, int global, gdb::function_view<symbol_found_callback_ftype> callback, - symbol_name_match_type match, symbol_compare_ftype *ordered_compare) { /* Currently unimplemented; used for Ada. The function can be called if the |