[RFA 14/42] Move scan_file_globals declaration to stabsread.h

Tom Tromey
2018-05-23T04:59:12Z

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

gdb/ChangeLog
2018-05-22 Tom Tromey <tom@tromey.com>

* stabsread.h (scan_file_globals): Move from buildsym.h.
* buildsym.h (scan_file_globals): Move to stabsread.h.
---
gdb/ChangeLog | 5 +++++
gdb/buildsym.h | 4 ----
gdb/stabsread.h | 2 ++
3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 77fc5bdd3c..f70777946a 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -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);
diff --git a/gdb/stabsread.h b/gdb/stabsread.h
index ce254e65d0..a5f327012d 100644
--- a/gdb/stabsread.h
+++ b/gdb/stabsread.h
@@ -221,4 +221,6 @@ extern void free_header_files (void);

extern void init_header_files (void);

+extern void scan_file_globals (struct objfile *objfile);
+
#undef EXTERN
--
2.13.6