Re: [PATCH] libdw: Handle all address FORMs for dwarf_highpc, handle errors better.

2018-05-25 Thread Mark Wielaard
On Tue, 2018-05-22 at 14:44 +0200, Mark Wielaard wrote: > dwarf_highpc can use any address FORM, not just DW_FORM_addr. Just try > whether the address can be resolved as address. Always set error when > attribute couldn't be found or resolved. When calculating the base > address for a CU don't try

[PATCH] libdw: Handle all address FORMs for dwarf_highpc, handle errors better.

2018-05-22 Thread Mark Wielaard
dwarf_highpc can use any address FORM, not just DW_FORM_addr. Just try whether the address can be resolved as address. Always set error when attribute couldn't be found or resolved. When calculating the base address for a CU don't try to second guess the error code, just treat an error the same as