Re: Bad struct name in gdb with g++ 4.1.2

Tom Tromey
2010-11-02T19:37:05Z

>>>>> "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