diff options
author | David Carlton <carlton@bactrian.org> | 2002-11-05 16:59:57 +0000 |
---|---|---|
committer | David Carlton <carlton@bactrian.org> | 2002-11-05 16:59:57 +0000 |
commit | 29924310ab374aa2b02d5cf4b049a2ba4f987e59 (patch) | |
tree | f862e5414d83500854c4b247187dae72eb0cd5f5 /gdb/symtab.c | |
parent | 6afa27b08c2aba9310bb8ab1f40816ee1d6ed783 (diff) | |
download | fsf-binutils-gdb-29924310ab374aa2b02d5cf4b049a2ba4f987e59.zip fsf-binutils-gdb-29924310ab374aa2b02d5cf4b049a2ba4f987e59.tar.gz fsf-binutils-gdb-29924310ab374aa2b02d5cf4b049a2ba4f987e59.tar.bz2 |
2002-11-05 David Carlton <carlton@math.stanford.edu>
* symtab.c (lookup_symbol_aux): In minsym sections, don't use the
previous values of 'objfile' and 'block'.
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r-- | gdb/symtab.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c index 2ecc40b..e579d16 100644 --- a/gdb/symtab.c +++ b/gdb/symtab.c @@ -929,7 +929,7 @@ lookup_symbol_aux (const char *name, const char *mangled_name, if (symtab != NULL) *symtab = s; - return fixup_symbol_section (sym, objfile); + return fixup_symbol_section (sym, s->objfile); } else if (MSYMBOL_TYPE (msymbol) != mst_text && MSYMBOL_TYPE (msymbol) != mst_file_text @@ -937,7 +937,7 @@ lookup_symbol_aux (const char *name, const char *mangled_name, { /* This is a mangled variable, look it up by its mangled name. */ - return lookup_symbol_aux (SYMBOL_NAME (msymbol), mangled_name, block, + return lookup_symbol_aux (SYMBOL_NAME (msymbol), mangled_name, NULL, namespace, is_a_field_of_this, symtab); } /* There are no debug symbols for this file, or we are looking @@ -1120,7 +1120,7 @@ lookup_symbol_aux (const char *name, const char *mangled_name, && !STREQ (name, SYMBOL_NAME (msymbol))) { return lookup_symbol_aux (SYMBOL_NAME (msymbol), mangled_name, - block, namespace, is_a_field_of_this, + NULL, namespace, is_a_field_of_this, symtab); } } |