Re: [PATCH] libdw: Recognize zero terminator to end frame table in dwarf_next_cfi.

2018-06-29 Thread Mark Wielaard
On Fri, Jun 29, 2018 at 12:26:30AM +0200, Mark Wielaard wrote: > When the length is zero this is a the zero terminator that ends the > frame table. Return 1 (end of table) instead of -1 (error) in that case. > We cannot update next_off and don't want to caller to try again. > > Add testcase for dw

[PATCH] libdw: Recognize zero terminator to end frame table in dwarf_next_cfi.

2018-06-28 Thread Mark Wielaard
When the length is zero this is a the zero terminator that ends the frame table. Return 1 (end of table) instead of -1 (error) in that case. We cannot update next_off and don't want to caller to try again. Add testcase for dwarf_next_cfi to show both .eh_frame and .debug_frame tables and check con