We recently added a couple more sanity checks and show an error when
attributes that represent files cannot be resolved. We should only do
this when the attr_callback should print the attribute information.
When not (for example when not showing the .debug_info section, but
only collecting information about the CUs containing pointers into
other sections) we don't need to lookup the file names, nor print
the errors/warnings.
Signed-off-by: Mark Wielaard <mark@klomp.org>
+2018-04-14 Mark Wielaard <mark@klomp.org>
+
+ * readelf.c (attr_callback): Only show errors when not silent.
+
2018-03-23 Mark Wielaard <mark@klomp.org>
* readelf.c (attr_callback): Handle DW_FORM_strx[1234].
case DW_AT_decl_file:
case DW_AT_call_file:
{
+ if (cbargs->silent)
+ break;
+
/* Try to get the actual file, the current interface only
gives us full paths, but we only want to show the file
name for now. */