This is the mail archive of the gdb-patches@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]

Re: [RFA] symtab.c: Fix for infinite GDB recursion in gdb.c++/classes.exp


"Peter.Schauer" <Peter.Schauer@regent.e-technik.tu-muenchen.de> writes:

> Current CVS GDB gets into an infinite recursion in gdb.c++/classes.exp
> (print Foo::st) if a stock gcc-2.95.2 with DWARF2 debugging info is used
> on Solaris and Linux x86.
> 
> The scenario is as follows:
> 
> lookup_symbol is called with a request for Foo::st, we find a matching
> minimal symbol, detect that it is a mangled variable and call lookup_symbol
> with the mangled name. Then lookup_symbol demangles the mangled name again,
> calls lookup_symbol with Foo::st and off we go till the stack overflows.

Even though the fix is technically correct, i'm puzzled.
It's clearly *not* a mangled variable, why is it thinking it is?
--Dan


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