initialize_objfile_symbol: Renamed from initialize_symbol.

gdb/ChangeLog:

	* symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol.
	All callers updated.
This commit is contained in:
Doug Evans 2014-12-23 07:28:28 -08:00
parent f606139ae8
commit 38bf1463f4
4 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2014-12-23 Doug Evans <xdje42@gmail.com>
* symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol.
All callers updated.
2014-12-23 Doug Evans <xdje42@gmail.com>
* language.h (struct language_defn) <la_lookup_symbol_nonlocal>:

View File

@ -5316,7 +5316,7 @@ initialize_ordinary_address_classes (void)
/* Initialize the symbol SYM. */
void
initialize_symbol (struct symbol *sym)
initialize_objfile_symbol (struct symbol *sym)
{
memset (sym, 0, sizeof (*sym));
SYMBOL_SECTION (sym) = -1;

View File

@ -1571,7 +1571,7 @@ struct cleanup *demangle_for_lookup (const char *name, enum language lang,
struct symbol *allocate_symbol (struct objfile *);
void initialize_symbol (struct symbol *);
void initialize_objfile_symbol (struct symbol *);
struct template_symbol *allocate_template_symbol (struct objfile *);

View File

@ -1559,7 +1559,7 @@ process_xcoff_symbol (struct coff_symbol *cs, struct objfile *objfile)
if (name[0] == '.')
++name;
initialize_symbol (sym);
initialize_objfile_symbol (sym);
/* default assumptions */
SYMBOL_VALUE_ADDRESS (sym) = cs->c_value + off;