]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Print attribute name and form in error message.
authorMark Wielaard <mark@klomp.org>
Tue, 21 Nov 2017 10:13:00 +0000 (11:13 +0100)
committerMark Wielaard <mark@klomp.org>
Fri, 24 Nov 2017 10:20:44 +0000 (11:20 +0100)
commit080e3f5b39eb722edd7ced68c072a82a6cc5bffb
tree05ce2686bd48c4a8d9b8b816cd298a163942d062
parent4d36d125fac8999506b8b2137d6b04c0354954ac
readelf: Print attribute name and form in error message.

Now an error getting the attribute value will not only print the DIE offset
and the reason, but also the attribute name and form. e.g.

  DIE [b] cannot get attribute 'ranges' (sec_offset) value: .debug_ranges
  section missing

Also we don't abort, but try to print the other attributes of the DIE
anyway. It might just be one attribute whose value cannot be resolved.

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/readelf.c