This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: DIE chains not ending with null entry
- From: Petr Machata <pmachata at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Thu, 10 Mar 2011 16:09:06 +0100
- Subject: Re: DIE chains not ending with null entry
Roland McGrath <roland@redhat.com> writes:
>> The thing is, many real-world DWARF files have this problem, so the
>
> Really? Do you have examples? Are they generated by current compilers?
I took a second look, and apparently all the cases that I have been
seeing are for CU DIEs. This are singleton DIEs, not DIE chains (Dwarf
4 Ch7.5: [...] consists of [...] single DW_TAG_compile_unit or
DW_TAG_partial_unit).
I changed the message to an error and only emit it for non-CU DIEs.
Thanks,
PM