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: [patch] fix for infinite recursion in lookup_symbol




On Fri, 12 Jan 2001, Jim Ingham wrote:

> Hi, all,
> 
> The following patch fixes an infinite recursion in the variable lookup 
> code for C++ objects that are specified in mangled form.  The old code 
> would take the mangled name into lookup_symbol, unmangle it, and then in 
> this bit pass the mangled name BACK to lookup_symbol, which would 
> unmangle it and come right back here...  Not a good thing.  The bug 
> crept in when lookup_symbol was broken up into lookup_symbol and 
> lookup_symbol_aux, the correction is clearly what was meant.

This was already known, and we are still waiting for Jim Blandy to make a
decision whether we should revert the binary searching symbol lookup for
C++ stuff or  not.
If we decide to stay with the non-linear symbol lookup, i'll fix the bugs,
as i already have patches for most of them (there aren't many).

--Dan


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