Even if we cannot create a proper Dwarf dbg we can still print the
information of various debug sections. All all debug print section
functions already check first they can access the appropriate data.
Signed-off-by: Mark Wielaard <mjw@redhat.com>
+2015-03-17 Mark Wielaard <mjw@redhat.com>
+
+ * readelf.c (print_debug): Don't return, but always use dummy_dbg.
+
2015-03-17 Mark Wielaard <mjw@redhat.com>
* readelf.c (print_gdb_index_section): Add overflow checking for
if ((print_debug_sections & ~section_exception) != 0)
error (0, 0, gettext ("cannot get debug context descriptor: %s"),
dwfl_errmsg (-1));
- if ((print_debug_sections & section_exception) == 0)
- return;
dbg = &dummy_dbg;
}