This is the mail archive of the elfutils-devel@sourceware.org mailing list for the elfutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]