diff options
author | Tom Tromey <tom@tromey.com> | 2018-05-20 11:19:14 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2018-07-16 08:55:18 -0600 |
commit | 5985ac614d7e8ae65faadf62e9302c1c096b5647 (patch) | |
tree | 53f530368220eef99dfa603945ca812c013d87d5 /gdb/stabsread.h | |
parent | 6b84eeb21628a89b40c985b527d3d5db7806c93c (diff) | |
download | gdb-5985ac614d7e8ae65faadf62e9302c1c096b5647.zip gdb-5985ac614d7e8ae65faadf62e9302c1c096b5647.tar.gz gdb-5985ac614d7e8ae65faadf62e9302c1c096b5647.tar.bz2 |
Move within_function to stabsread
The global within_function is only used by a few symbol readers. This
patch moves the global out of buildsym and into stabsread, which
seemed like a better fit. It also arranges for the existing readers
to clear the global at the appropriate time.
gdb/ChangeLog
2018-07-16 Tom Tromey <tom@tromey.com>
* stabsread.h (within_function): Move from buildsym.h.
* stabsread.c (start_stabs): Clear within_function.
* coffread.c (coff_start_symtab): Clear within_function.
* buildsym.h (within_function): Move to stabsread.h.
* buildsym.c (prepare_for_building): Update.
Diffstat (limited to 'gdb/stabsread.h')
-rw-r--r-- | gdb/stabsread.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/stabsread.h b/gdb/stabsread.h index 0da88f4..34c6738 100644 --- a/gdb/stabsread.h +++ b/gdb/stabsread.h @@ -53,6 +53,11 @@ EXTERN const char *(*next_symbol_text_func) (struct objfile *); EXTERN unsigned char processing_gcc_compilation; +/* Nonzero if within a function (so symbols should be local, if + nothing says specifically). */ + +EXTERN int within_function; + /* Hash table of global symbols whose values are not known yet. They are chained thru the SYMBOL_VALUE_CHAIN, since we don't have the correct data for that slot yet. |