mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
Remove buildsym_new_init
buildsym_new_init is just an alias for buildsym_init. This removes it. In the long run buildsym_init will also go away; this patch just helps make things a bit clearer in the meantime. gdb/ChangeLog 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.
This commit is contained in:
parent
5985ac614d
commit
2c722d18f3
@ -1,3 +1,14 @@
|
||||
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.
|
||||
|
@ -1751,7 +1751,7 @@ get_last_source_start_addr ()
|
||||
corresponding to a psymtab. */
|
||||
|
||||
void
|
||||
buildsym_init (void)
|
||||
buildsym_init ()
|
||||
{
|
||||
subfile_stack = NULL;
|
||||
|
||||
@ -1775,13 +1775,3 @@ buildsym_init (void)
|
||||
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 ();
|
||||
}
|
||||
|
@ -209,9 +209,7 @@ extern void augment_type_symtab (void);
|
||||
|
||||
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);
|
||||
|
||||
|
@ -568,7 +568,7 @@ static void
|
||||
dbx_new_init (struct objfile *ignore)
|
||||
{
|
||||
stabsread_new_init ();
|
||||
buildsym_new_init ();
|
||||
buildsym_init ();
|
||||
init_header_files ();
|
||||
}
|
||||
|
||||
@ -3037,7 +3037,7 @@ coffstab_build_psymtabs (struct objfile *objfile,
|
||||
perror_with_name (name);
|
||||
|
||||
stabsread_new_init ();
|
||||
buildsym_new_init ();
|
||||
buildsym_init ();
|
||||
free_header_files ();
|
||||
init_header_files ();
|
||||
|
||||
@ -3125,7 +3125,7 @@ elfstab_build_psymtabs (struct objfile *objfile, asection *stabsect,
|
||||
perror_with_name (name);
|
||||
|
||||
stabsread_new_init ();
|
||||
buildsym_new_init ();
|
||||
buildsym_init ();
|
||||
free_header_files ();
|
||||
init_header_files ();
|
||||
|
||||
@ -3227,7 +3227,7 @@ stabsect_build_psymtabs (struct objfile *objfile, char *stab_name,
|
||||
perror_with_name (name);
|
||||
|
||||
stabsread_new_init ();
|
||||
buildsym_new_init ();
|
||||
buildsym_init ();
|
||||
free_header_files ();
|
||||
init_header_files ();
|
||||
|
||||
|
@ -1325,7 +1325,7 @@ static void
|
||||
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
|
||||
|
@ -344,7 +344,7 @@ mdebug_build_psymtabs (minimal_symbol_reader &reader,
|
||||
debug_info = info;
|
||||
|
||||
stabsread_new_init ();
|
||||
buildsym_new_init ();
|
||||
buildsym_init ();
|
||||
free_header_files ();
|
||||
init_header_files ();
|
||||
|
||||
|
@ -54,7 +54,7 @@ static void
|
||||
mipscoff_new_init (struct objfile *ignore)
|
||||
{
|
||||
stabsread_new_init ();
|
||||
buildsym_new_init ();
|
||||
buildsym_init ();
|
||||
}
|
||||
|
||||
/* Initialize to read a symbol file (nothing to do). */
|
||||
|
@ -1920,7 +1920,7 @@ static void
|
||||
xcoff_new_init (struct objfile *objfile)
|
||||
{
|
||||
stabsread_new_init ();
|
||||
buildsym_new_init ();
|
||||
buildsym_init ();
|
||||
}
|
||||
|
||||
/* Do initialization in preparation for reading symbols from OBJFILE.
|
||||
|
Loading…
Reference in New Issue
Block a user