This is the mail archive of the
elfutils-devel@sourceware.org
mailing list for the elfutils project.
Re: circular reference chains with DW_AT_containing_type
- From: Tom Tromey <tromey at redhat dot com>
- To: elfutils-devel at lists dot fedorahosted dot org
- Date: Mon, 21 Feb 2011 07:47:55 -0700
- Subject: Re: circular reference chains with DW_AT_containing_type
>>>>> "Mark" == Mark Wielaard <mjw@redhat.com> writes:
Mark> <structure_type offset=[0x2898c8]
Mark> specification=[0x28889b]
Mark> byte_size=0x8
Mark> decl_file="...libdw/c++/dwarf_data" decl_line=761
Mark> containing_type=[0x2898c8]>
Mark> Is this valid dwarf? Can a structure_type have a containing_type? A
Mark> strict reading of the dwarf4 spec seems to imply only a
Mark> DW_TAG_ptr_to_member_type may have a DW_AT_containing_type.
If only DWARF actually specified that anything at all was invalid.
One thing to know is that GCC does not properly emit
DW_TAG_ptr_to_member_type. Instead it emits a structure type that
the consumer must know is "really" a pointer to member.
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28767
Tom