Move scan_file_globals declaration to stabsread.h
authorTom Tromey <tom@tromey.com>
Sun, 20 May 2018 18:06:43 +0000 (12:06 -0600)
committerTom Tromey <tom@tromey.com>
Mon, 16 Jul 2018 14:55:19 +0000 (08:55 -0600)
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.

gdb/ChangeLog
gdb/buildsym.h
gdb/stabsread.c
gdb/stabsread.h

index f80318288b1d0fff4acce17b83c2ac0998c6ea18..df77b21841a54a011e885cf18dc13384a2e264eb 100644 (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.
index 77fc5bdd3c42db781ce088221eb02867e74562d5..f70777946a11e27b9d298322b3534792b8c83797 100644 (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);
index a260fc76b5619b634d8d8f41e99103cfb91014e6..50ca0e414f1ac64cc2d5e5423599497894d75d34 100644 (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)
index 34c6738813dd727b53d08e14df7c920d4e4bdbcf..b0194e0c6944a7d46de8cf22fcb699e44afe4cc3 100644 (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
This page took 0.030968 seconds and 4 git commands to generate.