diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-06-10 21:48:04 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2011-06-10 21:48:04 +0000 |
commit | 44b13c5a41d3b0fc2f122071e8c64987564dbf21 (patch) | |
tree | e151362865543474a1b08449bee91967fd38f77b /gdb/psymtab.c | |
parent | 6c30d220f19d7f4fe197fa5f62a472b2e5e84d7c (diff) | |
download | gdb-44b13c5a41d3b0fc2f122071e8c64987564dbf21.zip gdb-44b13c5a41d3b0fc2f122071e8c64987564dbf21.tar.gz gdb-44b13c5a41d3b0fc2f122071e8c64987564dbf21.tar.bz2 |
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.
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r-- | gdb/psymtab.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c index ea690ef..fd8bb7d 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -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; |