This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[binutils-gdb] Move scan_file_globals declaration to stabsread.h


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=77d6f1aa16685bc715c95decf6e3d3ae2e70dbc1

commit 77d6f1aa16685bc715c95decf6e3d3ae2e70dbc1
Author: Tom Tromey <tom@tromey.com>
Date:   Sun May 20 12:06:43 2018 -0600

    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.

Diff:
---
 gdb/ChangeLog   | 6 ++++++
 gdb/buildsym.h  | 4 ----
 gdb/stabsread.c | 4 +---
 gdb/stabsread.h | 6 ++++++
 4 files changed, 13 insertions(+), 7 deletions(-)

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index f803182..df77b21 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
 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.
 	* mipsread.c (mipscoff_new_init): Update.
 	* mdebugread.c (mdebug_build_psymtabs): Update.
diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 77fc5bd..f707779 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.c b/gdb/stabsread.c
index a260fc7..50ca0e4 100644
--- a/gdb/stabsread.c
+++ b/gdb/stabsread.c
@@ -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)
diff --git a/gdb/stabsread.h b/gdb/stabsread.h
index 34c6738..b0194e0 100644
--- a/gdb/stabsread.h
+++ b/gdb/stabsread.h
@@ -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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]