Re: [PATCH] libdw: Handle bogus CU length in dwarf_nextcu.

2018-06-25 Thread Mark Wielaard
On Fri, 2018-06-22 at 18:06 +0200, Mark Wielaard wrote: > The length field could be so big that it would wrap around the next_offset. > We don't really care that length is bogus, but we don't want to use it to > calculate the next offset if it is. Pushed to master.

[PATCH] libdw: Add dwarf_next_lines to read .debug_line tables without CUs.

2018-06-25 Thread Mark Wielaard
It is sometimes useful to read .debug_line tables on their own without having an associated CU DIE. DWARF5 line tables are self-contained. Adjust dwarf_begin_elf to accept ELF files with just a .debug_line. Add a new function dwarf_next_lines that returns the Dwarf_Files and Dwarf_Lines while ite