This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: Bad struct name in gdb with g++ 4.1.2
readelf -wi gives me the following
[...]
<1><66>: Abbrev Number: 2 (DW_TAG_structure_type)
DW_AT_sibling : <8e>
DW_AT_name : ._0
DW_AT_byte_size : 8
DW_AT_decl_file : 3
DW_AT_decl_line : 1
[...]
This is a compiler bug then.
Thanks,
Michel
-----Original Message-----
From: Tom Tromey [mailto:tromey@redhat.com]
Sent: Tuesday, November 02, 2010 3:41 PM
To: Michel METZGER
Cc: gdb@sourceware.org
Subject: Re: Bad struct name in gdb with g++ 4.1.2
>>>>> "Michel" == Michel METZGER <michel.metzger@st.com> writes:
Michel> I'm having some issues with debugging an application compiled
Michel> with g++ 4.1.2 The type names for structures appear in gdb as
Michel> ".0", ".1", etc.
[...]
Michel> A more recent version of gdb (7.1) gives the same results.
Michel> A more recent version of gcc (4.5.1) gives the expected results.
Michel> Any idea?
I would suggest looking at the debuginfo.
You can do this with "readelf -wi".
If that shows the strange names, then it is a compiler bug.
Tom