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'.
This commit is contained in:
David Carlton 2002-11-05 16:59:57 +00:00
parent 6afa27b08c
commit 29924310ab
2 changed files with 8 additions and 3 deletions

View File

@ -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

View File

@ -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);
}
}