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.
This commit is contained in:
Doug Evans
2015-02-10 17:01:37 -08:00
parent fc6b1256ee
commit e7d52ed304
3 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2015-02-11 Doug Evans <dje@google.com>
* symfile.h (new_symfile_objfile): Delete.
* symfile.c (finish_new_objfile): Renamed from new_symfile_objfile.
All callers updated.
2015-02-11 Patrick Palka <patrick@parcs.ath.cx> 2015-02-11 Patrick Palka <patrick@parcs.ath.cx>
* tui/tui-io.c (tui_handle_resize_during_io): Call * tui/tui-io.c (tui_handle_resize_during_io): Call

View File

@ -1099,8 +1099,8 @@ syms_from_objfile (struct objfile *objfile,
symbols for a new objfile, or mapping in the symbols from a reusable symbols for a new objfile, or mapping in the symbols from a reusable
objfile. ADD_FLAGS is a bitmask of enum symfile_add_flags. */ objfile. ADD_FLAGS is a bitmask of enum symfile_add_flags. */
void static void
new_symfile_objfile (struct objfile *objfile, int add_flags) 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 /* 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 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. */ return objfile; /* No symbols. */
} }
new_symfile_objfile (objfile, add_flags); finish_new_objfile (objfile, add_flags);
observer_notify_new_objfile (objfile); observer_notify_new_objfile (objfile);

View File

@ -458,8 +458,6 @@ enum symfile_add_flags
SYMFILE_NO_READ = 1 << 4 SYMFILE_NO_READ = 1 << 4
}; };
extern void new_symfile_objfile (struct objfile *, int);
extern struct objfile *symbol_file_add (const char *, int, extern struct objfile *symbol_file_add (const char *, int,
struct section_addr_info *, int); struct section_addr_info *, int);