]> git.ipfire.org Git - thirdparty/elfutils.git/commit
readelf: Print actual file for decl_file and call_file attributes.
authorMark Wielaard <mark@klomp.org>
Wed, 29 Nov 2017 15:06:36 +0000 (16:06 +0100)
committerMark Wielaard <mark@klomp.org>
Wed, 29 Nov 2017 15:45:18 +0000 (16:45 +0100)
commitd5b99ee3b4a2fd0ca989fe42f3ab6b3ac328a414
tree77d3b436a014acb5215dacd0eef6443078636092
parente6f1990baf57f07960d10bfed306ed74f93f491a
readelf: Print actual file for decl_file and call_file attributes.

When we see a DW_AT_decl_file or DW_AT_call_file attribute print the
actual file name. The current interface gives us a full (absolute) patch,
but we only want to show the file name for now to not clutter the output
too much. This helps a lot when trying to determine where something was
declared if you are just looking at the DIE tree. Otherwise you'll have
to cross match the number by hand with the corresponding line table entry.

Signed-off-by: Mark Wielaard <mark@klomp.org>
src/ChangeLog
src/readelf.c
tests/ChangeLog
tests/run-readelf-dwz-multi.sh
tests/run-readelf-zdebug-rel.sh