This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb 5.0 "ia64-unknown-linux" segv error
- To: Kevin Buettner <kevinb at cygnus dot com>, gjertsen at us dot ibm dot com, David B Anderson <davea at quasar dot engr dot sgi dot com>
- Subject: Re: gdb 5.0 "ia64-unknown-linux" segv error
- From: David B Anderson <davea at quasar dot engr dot sgi dot com>
- Date: Sat, 9 Dec 2000 15:48:53 -0800 (PST)
- Cc: bug-gdb at gnu dot org, gdb at sources dot redhat dot com
- References: <852569AF.0071239B.00@d54mta01.raleigh.ibm.com>
>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