* dwarf2read.c (dw2_find_symbol_file): Initialize filename before
calling init_cutu_and_read_dies.
This commit is contained in:
parent
5220199df0
commit
a98c29a089
2 changed files with 8 additions and 0 deletions
|
@ -3465,6 +3465,9 @@ dw2_find_symbol_file (struct objfile *objfile, const char *name)
|
|||
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,
|
||||
dw2_get_primary_filename_reader, &filename);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue