From: Doug Evans Date: Wed, 11 Feb 2015 01:01:37 +0000 (-0800) Subject: Rename new_symfile_objfile, make static. X-Git-Url: http://git.efficios.com/?a=commitdiff_plain;h=e7d52ed30408677f63c121e88a1493e6300b80ba;p=deliverable%2Fbinutils-gdb.git Rename new_symfile_objfile, make static. gdb/ChangeLog: * symfile.h (new_symfile_objfile): Delete. * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile. All callers updated. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index bdce011404..7de64c509d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2015-02-11 Doug Evans + + * symfile.h (new_symfile_objfile): Delete. + * symfile.c (finish_new_objfile): Renamed from new_symfile_objfile. + All callers updated. + 2015-02-11 Patrick Palka * tui/tui-io.c (tui_handle_resize_during_io): Call diff --git a/gdb/symfile.c b/gdb/symfile.c index 5ae50009bf..c2a71eca59 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -1099,8 +1099,8 @@ syms_from_objfile (struct objfile *objfile, symbols for a new objfile, or mapping in the symbols from a reusable objfile. ADD_FLAGS is a bitmask of enum symfile_add_flags. */ -void -new_symfile_objfile (struct objfile *objfile, int add_flags) +static void +finish_new_objfile (struct objfile *objfile, int add_flags) { /* If this is the main symbol file we have to clean up all users of the old main symbol file. Otherwise it is sufficient to fixup all the @@ -1234,7 +1234,7 @@ symbol_file_add_with_addrs (bfd *abfd, const char *name, int add_flags, return objfile; /* No symbols. */ } - new_symfile_objfile (objfile, add_flags); + finish_new_objfile (objfile, add_flags); observer_notify_new_objfile (objfile); diff --git a/gdb/symfile.h b/gdb/symfile.h index a22ee040d5..0bf40c1bb9 100644 --- a/gdb/symfile.h +++ b/gdb/symfile.h @@ -458,8 +458,6 @@ enum symfile_add_flags SYMFILE_NO_READ = 1 << 4 }; -extern void new_symfile_objfile (struct objfile *, int); - extern struct objfile *symbol_file_add (const char *, int, struct section_addr_info *, int);