[PATCH] readelf: Hook up -g, --section-groups to display the section groups.

2017-11-29 Thread Mark Wielaard
It was already possible to display the section groups using -a, but the argp options didn't yet have an -g, --section-groups entry to just display the section groups. Signed-off-by: Mark Wielaard --- src/ChangeLog | 4 src/readelf.c | 1 + 2 files changed, 5 insertions(+) diff --git a/src/

[PATCH 5/5] readelf: Print CU, base address and unresolved .debug_loc entries.

2017-11-29 Thread Mark Wielaard
Also adjust the formatting for the resolved addresses to print them on separate lines so they nicely line up even when the addresses are resolved to symbol+offset names. And print the operands starting on a new line. Signed-off-by: Mark Wielaard --- src/ChangeLog | 5 src

Various eu-readelf --debug-dump improvements

2017-11-29 Thread Mark Wielaard
While working on the DWARF5 support I found various cases where the eu-readelf --debug-dump could be improved to provide a bit more information that helped debug issues. The following changes are not DWARF5 specific, but improve the --debug-dump output to make a more useful (IMHO). [PATCH 1/5] rea

[PATCH 1/5] readelf: Adjust print_ops formatting.

2017-11-29 Thread Mark Wielaard
Use only 2 spaces for index (there are never 1, the most seen in the wild is 64). Adjust re-indenting after GNU_entry_value. Signed-off-by: Mark Wielaard --- src/ChangeLog | 5 src/readelf.c | 58 - tests/Chang

[PATCH 2/5] readelf: Print abbrev code for DIE with --debug-dump=info.

2017-11-29 Thread Mark Wielaard
If there is anything wrong with a DIE it is useful to know what the abbrev code was so you can lookup the abbrev description. Signed-off-by: Mark Wielaard --- src/ChangeLog | 4 +++ src/readelf.c | 9 --- tests/ChangeLog | 5 tests/

[PATCH 3/5] readelf: Print actual file for decl_file and call_file attributes.

2017-11-29 Thread Mark Wielaard
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

[PATCH 4/5] readelf: Print CU, base address and unresolved .debug_range entries.

2017-11-29 Thread Mark Wielaard
Also adjust the formatting for the resolved addresses to print them on separate lines so they nicely line up even when the addresses are resolved to symbol+offset names. Signed-off-by: Mark Wielaard --- src/ChangeLog | 5 + src/readelf.c | 47