aboutsummaryrefslogtreecommitdiff
path: root/gdb/buildsym.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-05-20 11:12:57 -0600
committerTom Tromey <tom@tromey.com>2018-07-16 08:55:17 -0600
commit0ec44fc067ca71f968a4fedda1c17cba2e5ad0ca (patch)
tree10da6ed1605d1b1a4b33463627df9824445db1c9 /gdb/buildsym.c
parent81cc346dc98678c5d196c7110795d8f2edfd8f50 (diff)
downloadfsf-binutils-gdb-0ec44fc067ca71f968a4fedda1c17cba2e5ad0ca.zip
fsf-binutils-gdb-0ec44fc067ca71f968a4fedda1c17cba2e5ad0ca.tar.gz
fsf-binutils-gdb-0ec44fc067ca71f968a4fedda1c17cba2e5ad0ca.tar.bz2
Make context_stack_size static in buildsym.c
context_stack_size is declared in buildsym.h, but only used in buildsym.c. This makes it static in buildsym.c. gdb/ChangeLog 2018-07-16 Tom Tromey <tom@tromey.com> * buildsym.h (context_stack_size): Don't declare. * buildsym.c (context_stack_size): New global.
Diffstat (limited to 'gdb/buildsym.c')
-rw-r--r--gdb/buildsym.c4
1 files changed, 4 insertions, 0 deletions
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);