diff options
author | Mark Wielaard <mark@klomp.org> | 2017-12-29 00:46:19 +0100 |
---|---|---|
committer | Mark Wielaard <mark@klomp.org> | 2017-12-29 00:46:19 +0100 |
commit | c3bb9051c199ed22628ecb33ce781bca70b34eb4 (patch) | |
tree | ad355931ea5dc4ed423102b36e02e6cfe5797625 /src | |
parent | 4af2f2ed9269cd8d99d5c1a2c376e817a65e9e28 (diff) | |
download | elfutils-c3bb9051c199ed22628ecb33ce781bca70b34eb4.tar.gz |
readelf: Format offset as DIE index (hex).
That makes it so much easier to find the actual DIE offset in the output.
Signed-off-by: Mark Wielaard <mark@klomp.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 5 | ||||
-rw-r--r-- | src/readelf.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 994b1e17..9d6ec830 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2017-12-28 Mark Wielaard <mark@klomp.org> + + * readelf.c (print_debug_units): Print DIE offset in error message + as hex. + 2017-12-18 Mark Wielaard <mark@klomp.org> * readelf.c (handle_notes_data): Don't use EXIT_FAILURE in error. diff --git a/src/readelf.c b/src/readelf.c index ca979e3c..ee9c7e1d 100644 --- a/src/readelf.c +++ b/src/readelf.c @@ -6414,8 +6414,8 @@ print_debug_units (Dwfl_Module *dwflmod, if (unlikely (tag == DW_TAG_invalid)) { if (!silent) - error (0, 0, gettext ("cannot get tag of DIE at offset %" PRIu64 - " in section '%s': %s"), + error (0, 0, gettext ("cannot get tag of DIE at offset [%" PRIx64 + "] in section '%s': %s"), (uint64_t) offset, secname, dwarf_errmsg (-1)); goto do_return; } |