gdb/
Code cleanup. * dictionary.c (struct dict_vector) <iter_match_first, iter_match_next> (iter_match_first_hashed, iter_match_next_hashed) (iter_match_first_linear, iter_match_next_linear) (dict_iter_match_first, dict_iter_match_next, iter_match_first_hashed) (iter_match_next_hashed, iter_match_first_linear) (iter_match_next_linear): Use symbol_compare_ftype. * dictionary.h: Include symfile.h. (dict_iter_match_first, dict_iter_match_next): Use symbol_compare_ftype. * dwarf2read.c (dw2_map_matching_symbols): Likewise. * psymtab.c (match_partial_symbol, match_partial_symbol, map_block) (map_matching_symbols_psymtab): Likewise. * symfile.h (symbol_compare_ftype): New typedef. (struct quick_symbol_functions) <map_matching_symbols): Use symbol_compare_ftype.
This commit is contained in:
parent
f6df29bc29
commit
2edb89d30e
6 changed files with 55 additions and 50 deletions
|
@ -2383,10 +2383,8 @@ dw2_map_matching_symbols (const char * name, domain_enum namespace,
|
|||
struct objfile *objfile, int global,
|
||||
int (*callback) (struct block *,
|
||||
struct symbol *, void *),
|
||||
void *data,
|
||||
int (*match) (const char *, const char *),
|
||||
int (*ordered_compare) (const char *,
|
||||
const char *))
|
||||
void *data, symbol_compare_ftype *match,
|
||||
symbol_compare_ftype *ordered_compare)
|
||||
{
|
||||
/* Currently unimplemented; used for Ada. The function can be called if the
|
||||
current language is Ada for a non-Ada objfile using GNU index. As Ada
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue