diff options
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 2572179..78c663c 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2319,6 +2319,9 @@ int dwarf2_has_info (struct objfile *objfile, const struct dwarf2_debug_sections *names) { + if (objfile->flags & OBJF_READNEVER) + return 0; + dwarf2_per_objfile = ((struct dwarf2_per_objfile *) objfile_data (objfile, dwarf2_objfile_data_key)); if (!dwarf2_per_objfile) |