bug-gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: <incomplete type> for C++ programs


From: Wouter De Maere
Subject: Re: <incomplete type> for C++ programs
Date: Tue, 25 Sep 2001 09:00:41 +0200

Thanks Jim,

I noticed that gdb can handle nested classes, but no nested
structs.
I turned the nested structs into a class (a plain class with all
public members), and got around the problem.

Regards,
Wouter.


Jim Blandy wrote:

> Wouter De Maere <address@hidden> writes:
> > I am using gdb version 4.17 and version 5.0.
> > Both of the gdb's show the same problem, when
> > debugging C++ software: when you are printing an
> > instance of a class, it often says <incomplete type>.
> > This usually happens for nested classes.
> > I'm compiling the software with
> >     gcc 2.95.2
> >
> > Any ideas ?
>
> GDB's support for qualified names is very poor.  GDB's internal
> representation for the symbol table, types, and so on needs
> substantial work before it can properly handle C++ nested classes,
> namespaces, and so on.
>
> At the moment, GDB is waiting for someone with the skill and patience
> needed to get it right to volunteer to tackle the problem.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]