forked from Imagelibrary/binutils-gdb
gdb/
Code cleanup. * dwarf2read.c (dw2_map_symbol_filenames): Use symbol_filename_ftype for fun. * psymtab.c (map_symbol_filenames_psymtab) (map_partial_symbol_filenames): Likewise. * psymtab.h: Include symfile.h. (map_partial_symbol_filenames): Use symbol_filename_ftype for fun. * symfile.h (symbol_filename_ftype): New. (struct quick_symbol_functions): Use symbol_filename_ftype for fun of map_symbol_filenames, clarify more the naming in comment.
This commit is contained in:
@@ -1082,9 +1082,7 @@ read_psymtabs_with_filename (struct objfile *objfile, const char *filename)
|
||||
|
||||
static void
|
||||
map_symbol_filenames_psymtab (struct objfile *objfile,
|
||||
void (*fun) (const char *, const char *,
|
||||
void *),
|
||||
void *data)
|
||||
symbol_filename_ftype *fun, void *data)
|
||||
{
|
||||
struct partial_symtab *ps;
|
||||
|
||||
@@ -1917,9 +1915,7 @@ expand_partial_symbol_names (int (*fun) (const char *, void *), void *data)
|
||||
}
|
||||
|
||||
void
|
||||
map_partial_symbol_filenames (void (*fun) (const char *, const char *,
|
||||
void *),
|
||||
void *data)
|
||||
map_partial_symbol_filenames (symbol_filename_ftype *fun, void *data)
|
||||
{
|
||||
struct objfile *objfile;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user