This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb, c++ & namespaces
On Wed, Jan 14, 2004 at 02:49:20PM +0100, Marcel Lanz wrote:
> I have gdb-6.0 now. same compiler.
>
> dp is a pointer to a instance like:
>
> DatagramPacket* dp;
>
> on the prompt I do:
>
> (netsilicon-gdb) print *dp
> warning: can't find class named `tnos::net::DatagramPacket', as given by
> C++ RTTI
> $2 = {_vptr.DatagramPacket = 0xeffb0, ia = 0x206548, isa = 0x206690,
> buffer = 0x206558 "", bufferLength = 0xff, length = 0xff}
>
> tnos::net::DatagramPacket is a class in the namespace tnos::net
>
> any ideas ?
Namespace support is still being developed. If you build GDB from CVS
you will probably have better results, but it isn't finished.
> I've read about two debug formats: stabs and dwarf. In the manual of Mr.
> Stallman, stabs is recommended "for best results" with c++.
That is out of date and inaccurate.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer