diff mbox

[3/6,PR,17684] rename initialize_symbol -> initialize_objfile_symbol

Message ID m3ppbhb0z2.fsf@sspiff.org
State New
Headers show

Commit Message

Doug Evans Dec. 18, 2014, 12:23 p.m. UTC
Hi.

This is just a simple renaming of a function.

2014-12-18  Doug Evans  <xdje42@gmail.com>

	* symtab.c (initialize_objfile_symbol): Renamed from initialize_symbol.
	All callers updated.

gdiff --git a/gdb/symtab.c b/gdb/symtab.c
index 7d2cde5..e7cd5af 100644
diff mbox

Patch

--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -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;
diff --git a/gdb/symtab.h b/gdb/symtab.h
index 57ed9fc..3a3384d 100644
--- a/gdb/symtab.h
+++ b/gdb/symtab.h
@@ -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 *);
 
diff --git a/gdb/xcoffread.c b/gdb/xcoffread.c
index 49827b6..5a1d7a8 100644
--- a/gdb/xcoffread.c
+++ b/gdb/xcoffread.c
@@ -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;