This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: <incomplete type> in a C++ program compiled with gcc 4.0.1


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]