This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: <incomplete type> in a C++ program compiled with gcc 4.0.1
- From: Daniel Jacobowitz <drow at false dot org>
- To: Raúl Huertas <raulh39 at ya dot com>
- Cc: GDB maillist <gdb at sourceware dot org>
- Date: Fri, 10 Nov 2006 14:11:43 -0500
- Subject: Re: <incomplete type> in a C++ program compiled with gcc 4.0.1
- References: <4554CDC5.5030309@ya.com>
On Fri, Nov 10, 2006 at 08:06:45PM +0100, Raúl Huertas wrote:
> This is my first post to this mail list, and I'm not sure if it is the
> correct one. In case I'm wrong, can you please tell me wich mail list is
> the correct one?
This one is fine.
> The program works as expected, but when I run it in GDB setting a
> breakpoint in the "cout" line, I cannot print the content of "a_example".
> Here is the output of gdb:
>
> (gdb) p a_example
> $1 = <incomplete type>
Unfortunately this is a GCC problem - I am not sure whether to call it
a bug or not. This might work if you had a debugging build of
libstdc++, but debug information about some classes is only emitted
with their key methods. You'll have to report this to the GCC
developers, probably via bugzilla.
--
Daniel Jacobowitz
CodeSourcery