aboutsummaryrefslogtreecommitdiff
path: root/gdb/stabsread.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-20 11:16:57 -0600
committerTom Tromey <tom@tromey.com>2018-07-16 08:55:18 -0600
commit6b84eeb21628a89b40c985b527d3d5db7806c93c (patch)
treeb6776a73b8fc1f5bf2cd6474898e89f85c30d9c8 /gdb/stabsread.h
parent2150c3ef045a525b1d74c06eb8b0811621f264e3 (diff)
downloadgdb-6b84eeb21628a89b40c985b527d3d5db7806c93c.zip
gdb-6b84eeb21628a89b40c985b527d3d5db7806c93c.tar.gz
gdb-6b84eeb21628a89b40c985b527d3d5db7806c93c.tar.bz2
Move processing_gcc to stabsread
processing_gcc is also only used by stabsread -- it is set by the DWARF reader, but this turns out not to be needed. So, this patch moves processing_gcc and removes the assignment from the DWARF reader. gdb/ChangeLog 2018-07-16 Tom Tromey <tom@tromey.com> * stabsread.h (processing_gcc_compilation): Move from buildsym.h. * dwarf2read.c (dwarf2_start_symtab): Don't set processing_gcc_compilation. * buildsym.h (processing_gcc_compilation): Move to stabsread.h.
Diffstat (limited to 'gdb/stabsread.h')
-rw-r--r--gdb/stabsread.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/stabsread.h b/gdb/stabsread.h
index 38e001a..0da88f4 100644
--- a/gdb/stabsread.h
+++ b/gdb/stabsread.h
@@ -48,6 +48,11 @@ EXTERN unsigned int symnum;
EXTERN const char *(*next_symbol_text_func) (struct objfile *);
+/* Global variable which, when set, indicates that we are processing a
+ .o file compiled with gcc */
+
+EXTERN unsigned char processing_gcc_compilation;
+
/* 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.