Re: [PATCH 2/3] libdw: Update acceptable forms and attributes for dwarf_getlocation.

2017-11-10 Thread Mark Wielaard
On Sun, 2017-11-05 at 00:31 +0100, Mark Wielaard wrote: > dwarf_getlocation has to know which attributes can contain a DWARF > expression or location list because the form alone might be ambiguous. > > Since DWARF4 there is DW_FORM_exprloc so always accept that. But for older > DWARF or location l

[PATCH 2/3] libdw: Update acceptable forms and attributes for dwarf_getlocation.

2017-11-04 Thread Mark Wielaard
dwarf_getlocation has to know which attributes can contain a DWARF expression or location list because the form alone might be ambiguous. Since DWARF4 there is DW_FORM_exprloc so always accept that. But for older DWARF or location lists we cannot just check for DW_FORM_sec_offset since that could