aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/buildsym.c4
-rw-r--r--gdb/buildsym.h4
3 files changed, 9 insertions, 4 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b053f8c..39936a4 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
2018-07-16 Tom Tromey <tom@tromey.com>
+ * buildsym.h (context_stack_size): Don't declare.
+ * buildsym.c (context_stack_size): New global.
+
+2018-07-16 Tom Tromey <tom@tromey.com>
+
* dbxread.c (processing_acc_compilation): New global.
* buildsym.h (processing_acc_compilation): Don't declare.
diff --git a/gdb/buildsym.c b/gdb/buildsym.c
index 1cbde1d..26c5110 100644
--- a/gdb/buildsym.c
+++ b/gdb/buildsym.c
@@ -257,6 +257,10 @@ struct subfile_stack
static struct subfile_stack *subfile_stack;
+/* Currently allocated size of context stack. */
+
+static int context_stack_size;
+
static void free_buildsym_compunit (void);
static int compare_line_numbers (const void *ln1p, const void *ln2p);
diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 088c1d7..191db8c 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -159,10 +159,6 @@ EXTERN struct context_stack *context_stack;
EXTERN int context_stack_depth;
-/* Currently allocated size of context stack. */
-
-EXTERN int context_stack_size;
-
/* Non-zero if the context stack is empty. */
#define outermost_context_p() (context_stack_depth == 0)