dwarflint versus data_member_location

Mark Wielaard mjw at redhat.com
Fri Jul 16 09:20:48 UTC 2010


Hi,

dwarflint (from the dwarf branch) gives the following error:

error: .debug_abbrev: abbr. attribute 0x2a: data_member_location with
invalid form "sdata".

But that is actually valid. The Dwarf spec says that
DW_AT_data_member_location may be either a constant, exprloc or
loclistptr. If it is a constant then it should be interpreted as the
offset into the struct.

The following patch fixes it. Does that make sense to commit to the
dwarf branch?

Thanks,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-dwarflint-DW_AT_data_member_location-may-have-consta.patch
Type: text/x-patch
Size: 2271 bytes
Desc: 
Url : https://fedorahosted.org/pipermail/elfutils-devel/attachments/20100716/f032aab7/attachment.bin 


More information about the elfutils-devel mailing list