This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


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

Re: gdb 5.0 "ia64-unknown-linux" segv error



>kevinb writes:
>> <1><96d50>: Abbrev Number: 12 (DW_TAG_typedef)
>>     DW_AT_name        : ulong  
>>     DW_AT_decl_file   : 12     
>>     DW_AT_decl_line   : 59     
>>     DW_AT_type        : <96d50>        
>>
>>I'm not a DWARF2 expert, but it looks to me like the above is a
>>self referential typedef.  This would explain why you're seeing
>>the infinite recursion in dwarf2read.c.
>
>Yes, it is a bug. This is not correct dwarf2.
>
>I was going to say it was 'illegal' dwarf2, but the spec
>does not quite allow me to say that:
>the spec:

No, I was wrong, it is illegal dwarf2.

Section 2.5  of the July 1993 spec (v2.0.0)
and section 2.6 of the current draft  version both have:

  Any debugging information entry describing a declaration that
  has a type has a DW_AT_type attribute, whose value is a
  reference to another debugging information entry.

which is clear enough, and rules out the dwarf2 example above.

davea@sgi.com

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