diff options
author | Tom Tromey <tom@tromey.com> | 2019-01-22 01:58:59 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-01-22 16:00:05 -0700 |
commit | d65d5705cd6e972067dfa7ccf1f9e0950c1538ff (patch) | |
tree | 39d5d625e951b37740f152b5012c44caccbecb71 /gdb/stabsread.c | |
parent | b1afaa356621e3236ff27fec09e63fb99e9e990e (diff) | |
download | gdb-d65d5705cd6e972067dfa7ccf1f9e0950c1538ff.zip gdb-d65d5705cd6e972067dfa7ccf1f9e0950c1538ff.tar.gz gdb-d65d5705cd6e972067dfa7ccf1f9e0950c1538ff.tar.bz2 |
Remove the EXTERN define from stabsread.h
This removes the EXTERN define from stabsread.h. This is the only
spot that still uses this approach, and it interfered with sorting the
includes in stabsread.c.
Tested by rebuilding.
gdb/ChangeLog
2019-01-22 Tom Tromey <tom@tromey.com>
* stabsread.c (EXTERN): Do not define.
(symnum, next_symbol_text_func, processing_gcc_compilation)
(within_function, global_sym_chain, global_stabs)
(previous_stab_code, this_object_header_files)
(n_this_object_header_files)
(n_allocated_this_object_header_files): Define.
* stabsread.h (EXTERN): Never define. Use "extern".
Diffstat (limited to 'gdb/stabsread.c')
-rw-r--r-- | gdb/stabsread.c | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/gdb/stabsread.c b/gdb/stabsread.c index fc41c8f..fc3db8f 100644 --- a/gdb/stabsread.c +++ b/gdb/stabsread.c @@ -47,11 +47,19 @@ #include "bcache.h" #include <ctype.h> -/* Ask stabsread.h to define the vars it normally declares `extern'. */ -#define EXTERN -/**/ -#include "stabsread.h" /* Our own declarations */ -#undef EXTERN +#include "stabsread.h" + +/* See stabsread.h for these globals. */ +unsigned int symnum; +const char *(*next_symbol_text_func) (struct objfile *); +unsigned char processing_gcc_compilation; +int within_function; +struct symbol *global_sym_chain[HASHSIZE]; +struct pending_stabs *global_stabs; +int previous_stab_code; +int *this_object_header_files; +int n_this_object_header_files; +int n_allocated_this_object_header_files; struct nextfield { |