Re: dwarf_next_cfi returns -1

2018-06-27 Thread Mark Wielaard
On Wed, Jun 27, 2018 at 11:01:25PM +, Sasha Da Rocha Pinheiro wrote: > This is a binary that infinite loops with dwarf_next_cfi -1 because the > offset is not updated. > https://rice.box.com/s/yzul9oavplq1qdx12ozjpgssawea36xy > > A fix was done by saving the previous *next_off and comparing w

Re: dwarf_next_cfi returns -1

2018-06-27 Thread Sasha Da Rocha Pinheiro
This is a binary that infinite loops with dwarf_next_cfi -1 because the offset is not updated. https://rice.box.com/s/yzul9oavplq1qdx12ozjpgssawea36xy A fix was done by saving the previous *next_off and comparing with the current, after getting -1 in the return value. Sasha From: Mark Wiel

[PATCH] libdw: Allow .debug_frame only Dwarf.

2018-06-27 Thread Mark Wielaard
.debug_frame is useful independent from the other .debug sections. Add a simplified variant of the addrcfi testcase dwarfcfi. dwarfcfi only uses dwarf_frame calls and no dwfl helpers. Signed-off-by: Mark Wielaard --- libdw/ChangeLog | 5 + libdw/dwarf_begin_elf.c