This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] symtab.c: Fix for infinite GDB recursion in gdb.c++/classes.exp
- To: "Peter.Schauer" <Peter dot Schauer at regent dot e-technik dot tu-muenchen dot de>
- Subject: Re: [RFA] symtab.c: Fix for infinite GDB recursion in gdb.c++/classes.exp
- From: Daniel Berlin <dberlin at redhat dot com>
- Date: 27 Oct 2000 09:24:57 -0400
- Cc: gdb-patches at sourceware dot cygnus dot com
- References: <200010271045.MAA11687@reisser.regent.e-technik.tu-muenchen.de>
"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