FYI: Make libdw dwarf_child () work for debug_type DIEs

Mark Wielaard mjw at redhat.com
Tue Apr 26 15:24:36 UTC 2011


Hi,

There was a small bug in dwarf_child () that made it fail
with .debug_type Dwarf_Dies. It contained a sanity check to see whether
we reached the end of the section early. A Dwarf_CU can come from either
the debug_info unit or a debug_type unit section. So use the correct one
for sanity checking whether we have a truncated section. Fixed as
follows:

2011-04-26  Mark Wielaard  <mjw at redhat.com>

    * dwarf_child (dwarf_child): Sanity check end of section against
    cu_data () of die->cu.

Cheers,

Mark
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dwarf_child_tu.patch
Type: text/x-patch
Size: 1627 bytes
Desc: 
Url : https://fedorahosted.org/pipermail/elfutils-devel/attachments/20110426/fdb87007/attachment.bin 


More information about the elfutils-devel mailing list