From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2414 invoked by alias); 14 Jan 2004 13:55:11 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 2407 invoked from network); 14 Jan 2004 13:55:11 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 14 Jan 2004 13:55:11 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1AglUB-0000dq-Gs; Wed, 14 Jan 2004 08:55:07 -0500 Date: Wed, 14 Jan 2004 13:55:00 -0000 From: Daniel Jacobowitz To: Marcel Lanz Cc: Michael Elizabeth Chastain , gdb@sources.redhat.com Subject: Re: gdb, c++ & namespaces Message-ID: <20040114135507.GB2400@nevyn.them.org> Mail-Followup-To: Marcel Lanz , Michael Elizabeth Chastain , gdb@sources.redhat.com References: <20040114120213.684F44B104@berman.michael-chastain.com> <20040114134920.GA29776@ds9.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040114134920.GA29776@ds9.ch> User-Agent: Mutt/1.5.1i X-SW-Source: 2004-01/txt/msg00181.txt.bz2 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