This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb namespaces/wrapper bug?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]