diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-01-18 23:38:26 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-01-18 23:38:26 +0000 |
commit | c6b7013fc860af5dfa3d0c29a26b7add16a54c9c (patch) | |
tree | f1b2cb36650ddfae89601ced5cd923cf066acbeb /gdb | |
parent | ac302dd2049498baa769bf61ce4ec3fe784b1e77 (diff) | |
download | gdb-c6b7013fc860af5dfa3d0c29a26b7add16a54c9c.tar.gz |
* symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup
a mangled symbol rather than recursing into lookup_symbol, since
this will just re-unmangle the name & call lookup_symbol_aux -
leading to an infinite recursion.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 7 | ||||
-rw-r--r-- | gdb/symtab.c | 4 |
2 files changed, 9 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e894fa0bb64..27920962031 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,10 @@ +2001-01-09 James Ingham <jingham@inghji.apple.com> + + * symtab.c (lookup_symbol_aux): Call lookup_symbol_aux to lookup + a mangled symbol rather than recursing into lookup_symbol, since + this will just re-unmangle the name & call lookup_symbol_aux - + leading to an infinite recursion. + 2001-01-18 Mark Kettenis <kettenis@gnu.org> * infcmd.c (print_return_value): Restore another space lost by diff --git a/gdb/symtab.c b/gdb/symtab.c index 5cb29e4d15b..3b5e1a07ddf 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -771,8 +771,8 @@ lookup_symbol_aux (const char *name, const struct block *block, { /* This is a mangled variable, look it up by its mangled name. */ - return lookup_symbol (SYMBOL_NAME (msymbol), block, - namespace, is_a_field_of_this, symtab); + return lookup_symbol_aux (SYMBOL_NAME (msymbol), block, + namespace, is_a_field_of_this, symtab); } /* There are no debug symbols for this file, or we are looking for an unmangled variable. |