public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 3/6] [PR 17684] rename initialize_symbol -> initialize_objfile_symbol
@ 2014-12-18 12:24 Doug Evans
  0 siblings, 0 replies; only message in thread
From: Doug Evans @ 2014-12-18 12:24 UTC (permalink / raw)
  To: gdb-patches

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-12-18 12:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-18 12:24 [PATCH 3/6] [PR 17684] rename initialize_symbol -> initialize_objfile_symbol Doug Evans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).