From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12192 invoked by alias); 15 Jan 2004 14:49:52 -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 12185 invoked from network); 15 Jan 2004 14:49:51 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 15 Jan 2004 14:49:51 -0000 Received: from drow by nevyn.them.org with local (Exim 4.30 #1 (Debian)) id 1Ah8og-0006zA-0Q; Thu, 15 Jan 2004 09:49:50 -0500 Date: Thu, 15 Jan 2004 14:49:00 -0000 From: Daniel Jacobowitz To: Klaas Gadeyne Cc: gdb@sources.redhat.com Subject: Re: gdb namespaces/wrapper bug? Message-ID: <20040115144949.GA26765@nevyn.them.org> Mail-Followup-To: Klaas Gadeyne , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i X-SW-Source: 2004-01/txt/msg00195.txt.bz2 On Thu, Jan 15, 2004 at 01:37:45PM +0100, Klaas Gadeyne wrote: > namespace BASE > { > class Foo > namespace WRAPPED > { > class Foo : public BASE::Foo > This compiles and runs just fine (compile wrapper_object.cpp, compile > wrapper.cpp linking with wrapper_object.o), but when debugging the code > with gdb (I only tried with both 5.3-debian and 6.0-debian (the latest > from testing and unstable)) and trying to display the mywrapped variable, > gdb enters in a infinite loop: > > (gdb) display mywrapped > 1: mywrapped = { = { = .... > > and finally segfaults. Could you try CVS gdb? I think the segfault has been fixed. I may be mistaken about that, though. This is related to lookup_transparent_type, which David has been doing some work on (and has more pending). -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer