* dwarf2read.c (dw2_find_symbol_file): Initialize filename before

calling init_cutu_and_read_dies.
This commit is contained in:
Doug Evans 2013-04-30 21:11:50 +00:00
parent 5220199df0
commit a98c29a089
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2013-04-30 Doug Evans <dje@google.com>
* dwarf2read.c (dw2_find_symbol_file): Initialize filename before
calling init_cutu_and_read_dies.
2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com> 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
* target-descriptions.c (maint_print_c_tdesc_cmd): * target-descriptions.c (maint_print_c_tdesc_cmd):

View File

@ -3465,6 +3465,9 @@ dw2_find_symbol_file (struct objfile *objfile, const char *name)
return per_cu->v.quick->symtab->filename; return per_cu->v.quick->symtab->filename;
} }
/* Initialize filename in case there's a problem reading the DWARF,
dw2_get_primary_filename_reader may not get called. */
filename = NULL;
init_cutu_and_read_dies (per_cu, NULL, 0, 0, init_cutu_and_read_dies (per_cu, NULL, 0, 0,
dw2_get_primary_filename_reader, &filename); dw2_get_primary_filename_reader, &filename);