[RFA,14/42] Move scan_file_globals declaration to stabsread.h
Commit Message
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(-)
Comments
On 2018-05-23 12:58 AM, Tom Tromey wrote:
> scan_file_globals is defined in stabsread.c, so move its declaration
> to stabsread.h.
LGTM, though can you move the comment to the .h and add the usual "See..."?
Simon
>>>>> "Simon" == Simon Marchi <simark@simark.ca> writes:
Simon> On 2018-05-23 12:58 AM, Tom Tromey wrote:
>> scan_file_globals is defined in stabsread.c, so move its declaration
>> to stabsread.h.
Simon> LGTM, though can you move the comment to the .h and add the usual "See..."?
I did this.
Tom
@@ -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);
@@ -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