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
- From: Tom Tromey <tromey at redhat dot com>
- To: Michel METZGER <michel dot metzger at st dot com>
- Cc: "gdb\ at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 02 Nov 2010 13:41:11 -0600
- Subject: Re: Bad struct name in gdb with g++ 4.1.2
- References: <5B4CE209869C6A4797F5FAA0B348F0A0D9EA8C20A7@SAFEX1MAIL1.st.com>
>>>>> "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