summaryrefslogtreecommitdiff
path: root/tests/run-readelf-zdebug.sh
Commit message (Collapse)AuthorAgeFilesLines
* readelf: Handle multiple .debug_macro sections and decode header flag.Mark Wielaard2018-10-191-1/+1
| | | | | | | | | | | | | In object files there could be multiple .debug_macro sections. These are COMDAT sections used as imports. Note that the output for DW_MACRO_import isn't ideal since the offset is printed against the start of the .debug_macro section, but it doesn't show which one. We currently don't have that information and no interface yet for libdw users. Also decode the macro header flag byte for convenience. Signed-off-by: Mark Wielaard <mark@klomp.org>
* readelf: Add DWARF5 .debug_line support.Mark Wielaard2018-05-151-9/+11
| | | | | | | | | | | | This only changes the parsing of the directory and file name tables. It does this by sharing the printing of (non-CU based) from data from the .debug_macro code. Adding support for printing strx[1234] form data by sharing the code that detects the correct str_offsets_base in libdw. The header format is also cleaned up a bit so that it better lines out. Testcases adjusted and new ones added. Signed-off-by: Mark Wielaard <mark@klomp.org>
* readelf: Print CU, base address and unresolved .debug_loc entries.Mark Wielaard2017-11-291-6/+11
| | | | | | | | | 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 <mark@klomp.org>
* readelf: Print CU, base address and unresolved .debug_range entries.Mark Wielaard2017-11-291-1/+3
| | | | | | | | 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 <mark@klomp.org>
* readelf: Adjust print_ops formatting.Mark Wielaard2017-11-291-15/+15
| | | | | | | Use only 2 spaces for index (there are never 10000, the most seen in the wild is 64). Adjust re-indenting after GNU_entry_value. Signed-off-by: Mark Wielaard <mark@klomp.org>
* readelf: Read the decompressed data when processing .zdebug DWARF sections.Mark Wielaard2014-04-151-0/+539
readelf uses libdw to open the Dwarf and read some of the DWARF data. But it also uses its own parsers to display some of the low-level unprocessed data. If the DWARF debug section was zlib compressed it should actually use the decompressed section data from libdw instead of the raw section data. Includes a testcase for those sections that couldn't be properly displayed when compressed before. Signed-off-by: Mark Wielaard <mjw@redhat.com>