diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index e2088f1..d590248 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -1918,7 +1918,8 @@ dwarf2_read_section (struct objfile *objfile, struct dwarf2_section_info *info) if (dwarf2_section_empty_p (info)) return; - + else + { abfd = sectp->owner; /* If the section has relocations, we must read it ourselves. @@ -1951,6 +1952,7 @@ dwarf2_read_section (struct objfile *objfile, struct dwarf2_section_info *info) || bfd_bread (buf, info->size, abfd) != info->size) error (_("Dwarf Error: Can't read DWARF data from '%s'"), bfd_get_filename (abfd)); + } } /* A helper function that returns the size of a section in a safe way.