diff options
author | Doug Evans <dje@google.com> | 2011-11-11 00:43:04 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2011-11-11 00:43:04 +0000 |
commit | 74e2f255485844a9662d354ac13c4c04dad92c5c (patch) | |
tree | 375d5413abbaad0cefbeeb496ec0006e23456c41 /gdb/psymtab.c | |
parent | 3d88bd92001ccb331bdb8cfb462141636837ac59 (diff) | |
download | gdb-74e2f255485844a9662d354ac13c4c04dad92c5c.zip gdb-74e2f255485844a9662d354ac13c4c04dad92c5c.tar.gz gdb-74e2f255485844a9662d354ac13c4c04dad92c5c.tar.bz2 |
* dwarf2read.c (dw2_map_symbol_filenames): New parameter
`need_fullname'.
* psymtab.c (map_symbol_filenames_psymtab): Ditto.
(map_partial_symbol_filenames): Ditto. All callers updated.
* psymtab.h (map_partial_symbol_filenames): Update prototype.
* symfile.h (struct quick_symbol_functions, map_symbol_filenames): New
parameter need_fullname.
Diffstat (limited to 'gdb/psymtab.c')
-rw-r--r-- | gdb/psymtab.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gdb/psymtab.c b/gdb/psymtab.c index 38adca2..6012118 100644 --- a/gdb/psymtab.c +++ b/gdb/psymtab.c @@ -1082,7 +1082,8 @@ read_psymtabs_with_filename (struct objfile *objfile, const char *filename) static void map_symbol_filenames_psymtab (struct objfile *objfile, - symbol_filename_ftype *fun, void *data) + symbol_filename_ftype *fun, void *data, + int need_fullname) { struct partial_symtab *ps; @@ -1094,7 +1095,10 @@ map_symbol_filenames_psymtab (struct objfile *objfile, continue; QUIT; - fullname = psymtab_to_fullname (ps); + if (need_fullname) + fullname = psymtab_to_fullname (ps); + else + fullname = NULL; (*fun) (ps->filename, fullname, data); } } @@ -1921,13 +1925,15 @@ expand_partial_symbol_names (int (*fun) (const char *, void *), void *data) } void -map_partial_symbol_filenames (symbol_filename_ftype *fun, void *data) +map_partial_symbol_filenames (symbol_filename_ftype *fun, void *data, + int need_fullname) { struct objfile *objfile; ALL_OBJFILES (objfile) { if (objfile->sf) - objfile->sf->qf->map_symbol_filenames (objfile, fun, data); + objfile->sf->qf->map_symbol_filenames (objfile, fun, data, + need_fullname); } } |