Re: gdb, c++ & namespaces

Marcel Lanz
2004-01-14T13:49:22Z

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 ?

I've read about two debug formats: stabs and dwarf. In the manual of Mr.
Stallman, stabs is recommended "for best results" with c++.

regards Marcel

On Wed, Jan 14, 2004 at 07:02:13AM -0500, Michael Elizabeth Chastain wrote:
> > But It would be interesting to me to know why it fails ? just a line.
>
> Honestly, we have so much work to do for gdb 6.0 and gdb 6.1,
> it's unlikely that anyone will want to diagnose a problem with
> gdb 5.2.1. So you might get a response to this, but don't be
> surprised if you don't.
>
> Michael C
> GDB QA Guy

--
Marcel Lanz
http://www.ds9.ch/lanz/
marcel.lanz@ds9.ch | marcel.lanz@n-1.ch
GnuPG: F975 C6F7 04C8 642B 6DF4 4DF4 2945 F02A 797E 7DAB