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/dwarf2read.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/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 5a3e469..5e5ee7c 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2811,7 +2811,7 @@ dw2_find_pc_sect_symtab (struct objfile *objfile, static void dw2_map_symbol_filenames (struct objfile *objfile, symbol_filename_ftype *fun, - void *data) + void *data, int need_fullname) { int i; @@ -2833,8 +2833,12 @@ dw2_map_symbol_filenames (struct objfile *objfile, symbol_filename_ftype *fun, for (j = 0; j < file_data->num_file_names; ++j) { - const char *this_real_name = dw2_get_real_path (objfile, file_data, - j); + const char *this_real_name; + + if (need_fullname) + this_real_name = dw2_get_real_path (objfile, file_data, j); + else + this_real_name = NULL; (*fun) (file_data->file_names[j], this_real_name, data); } } |