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 | 956387381b92142b98eaec471f7ff76c9f06942e (patch) | |
tree | 2e2acd72a0ce8d58524c7c85c2529ee81859bc27 | |
parent | 7924883b05acf6923dc072d03055f45b4dda80d6 (diff) | |
download | gdb-956387381b92142b98eaec471f7ff76c9f06942e.tar.gz |
2002-11-05 David Carlton <carlton@math.stanford.edu>kseitz_interps-20021105-merge
* symtab.c (lookup_symbol_aux): In minsym sections, don't use the
previous values of 'objfile' and 'block'.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/symtab.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c828aa41095..1c42ef5c024 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +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'. + 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr> * values.c (value_change_enclosing_type): Set diff --git a/gdb/symtab.c b/gdb/symtab.c index 2ecc40bc8c8..e579d16209f 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); } } |