Move scan_file_globals declaration to stabsread.h

scan_file_globals is defined in stabsread.c, so move its declaration
to stabsread.h.

gdb/ChangeLog
2018-07-16  Tom Tromey  <tom@tromey.com>

	* stabsread.c (scan_file_globals): Update comment.
	* stabsread.h (scan_file_globals): Move from buildsym.h.
	* buildsym.h (scan_file_globals): Move to stabsread.h.
This commit is contained in:
Tom Tromey
2018-05-20 12:06:43 -06:00
parent 2c722d18f3
commit 77d6f1aa16
4 changed files with 13 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2018-07-16 Tom Tromey <tom@tromey.com>
* stabsread.c (scan_file_globals): Update comment.
* stabsread.h (scan_file_globals): Move from buildsym.h.
* buildsym.h (scan_file_globals): Move to stabsread.h.
2018-07-16 Tom Tromey <tom@tromey.com>
* xcoffread.c (xcoff_new_init): Update.

View File

@ -205,10 +205,6 @@ extern struct compunit_symtab *end_expandable_symtab (CORE_ADDR end_addr,
extern void augment_type_symtab (void);
/* Defined in stabsread.c. */
extern void scan_file_globals (struct objfile *objfile);
extern void buildsym_init ();
extern struct context_stack *push_context (int desc, CORE_ADDR valu);

View File

@ -4589,9 +4589,7 @@ cleanup_undefined_stabs_types (struct objfile *objfile)
cleanup_undefined_types_noname (objfile);
}
/* Scan through all of the global symbols defined in the object file,
assigning values to the debugging symbols that need to be assigned
to. Get these symbols from the minimal symbol table. */
/* See stabsread.h. */
void
scan_file_globals (struct objfile *objfile)

View File

@ -223,4 +223,10 @@ extern void free_header_files (void);
extern void init_header_files (void);
/* Scan through all of the global symbols defined in the object file,
assigning values to the debugging symbols that need to be assigned
to. Get these symbols from the minimal symbol table. */
extern void scan_file_globals (struct objfile *objfile);
#undef EXTERN