+2018-07-16 Tom Tromey <tom@tromey.com>
+
+ * xcoffread.c (xcoff_new_init): Update.
+ * mipsread.c (mipscoff_new_init): Update.
+ * mdebugread.c (mdebug_build_psymtabs): Update.
+ * elfread.c (elf_new_init): Update.
+ * dbxread.c (dbx_new_init, coffstab_build_psymtabs)
+ (elfstab_build_psymtabs, stabsect_build_psymtabs): Update.
+ * buildsym.h (buildsym_new_init): Don't declare.
+ * buildsym.c (buildsym_new_init): Remove.
+
2018-07-16 Tom Tromey <tom@tromey.com>
* stabsread.h (within_function): Move from buildsym.h.
corresponding to a psymtab. */
void
-buildsym_init (void)
+buildsym_init ()
{
subfile_stack = NULL;
gdb_assert (pending_addrmap == NULL);
gdb_assert (buildsym_compunit == NULL);
}
-
-/* Initialize anything that needs initializing when a completely new
- symbol file is specified (not just adding some symbols from another
- file, e.g. a shared library). */
-
-void
-buildsym_new_init (void)
-{
- buildsym_init ();
-}
extern void scan_file_globals (struct objfile *objfile);
-extern void buildsym_new_init (void);
-
-extern void buildsym_init (void);
+extern void buildsym_init ();
extern struct context_stack *push_context (int desc, CORE_ADDR valu);
dbx_new_init (struct objfile *ignore)
{
stabsread_new_init ();
- buildsym_new_init ();
+ buildsym_init ();
init_header_files ();
}
perror_with_name (name);
stabsread_new_init ();
- buildsym_new_init ();
+ buildsym_init ();
free_header_files ();
init_header_files ();
perror_with_name (name);
stabsread_new_init ();
- buildsym_new_init ();
+ buildsym_init ();
free_header_files ();
init_header_files ();
perror_with_name (name);
stabsread_new_init ();
- buildsym_new_init ();
+ buildsym_init ();
free_header_files ();
init_header_files ();
elf_new_init (struct objfile *ignore)
{
stabsread_new_init ();
- buildsym_new_init ();
+ buildsym_init ();
}
/* Perform any local cleanups required when we are done with a particular
debug_info = info;
stabsread_new_init ();
- buildsym_new_init ();
+ buildsym_init ();
free_header_files ();
init_header_files ();
mipscoff_new_init (struct objfile *ignore)
{
stabsread_new_init ();
- buildsym_new_init ();
+ buildsym_init ();
}
/* Initialize to read a symbol file (nothing to do). */
xcoff_new_init (struct objfile *objfile)
{
stabsread_new_init ();
- buildsym_new_init ();
+ buildsym_init ();
}
/* Do initialization in preparation for reading symbols from OBJFILE.