]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Print DIE offset in attribute reading error messages.
authorMark Wielaard <mark@klomp.org>
Tue, 3 Oct 2017 14:55:25 +0000 (16:55 +0200)
committerMark Wielaard <mark@klomp.org>
Thu, 16 Nov 2017 14:27:47 +0000 (15:27 +0100)
commit4d36d125fac8999506b8b2137d6b04c0354954ac
tree52a2c0ffe48645211de46465973e9fe1a06ef21e
parent1af6c2b9e49f59ea2f01035738525e798bb4f645
readelf: Print DIE offset in attribute reading error messages.

When processing large files it is useful to know the DIE offset if
printing of attributes fails (especially when redirecting the output).
With this change the error message looks like:

  eu-readelf: DIE [2aeb8ef1] cannot get attribute value: invalid DWARF

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