This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: gdb namespaces/wrapper bug?
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Klaas Gadeyne <Klaas dot Gadeyne at mech dot kuleuven dot ac dot be>
- Cc: gdb at sources dot redhat dot com
- Date: Thu, 15 Jan 2004 09:49:49 -0500
- Subject: Re: gdb namespaces/wrapper bug?
- References: <Pine.LNX.4.58.0401151319510.20336@f012>
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 = {<Foo> = {<Foo> = ....
>
> 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