aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 8dcf971..f640a40 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -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);