summaryrefslogtreecommitdiff
path: root/gdb/buildsym.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2002-11-08 20:05:10 +0000
committerJim Blandy <jimb@codesourcery.com>2002-11-08 20:05:10 +0000
commitba5773c40e14732f263f8bf9f141c9ad293c3a0c (patch)
tree942c4cdfa607c4c0ea6e4eb449c796fb9a69f2e9 /gdb/buildsym.h
parentcd08282f32fee351a0c0895eb8b25855b0c81532 (diff)
downloadgdb-ba5773c40e14732f263f8bf9f141c9ad293c3a0c.tar.gz
* dwarf2read.c (read_func_scope): Restore list_in_scope properly
when we finish a function a context. * buildsym.h (outermost_context_p): New macro. (Bug analyzed by David Edelsohn.)
Diffstat (limited to 'gdb/buildsym.h')
-rw-r--r--gdb/buildsym.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/buildsym.h b/gdb/buildsym.h
index 8a252cb2b4c..968a5793845 100644
--- a/gdb/buildsym.h
+++ b/gdb/buildsym.h
@@ -179,6 +179,9 @@ EXTERN int context_stack_size;
#define pop_context() (&context_stack[--context_stack_depth]);
+/* Non-zero if the context stack is empty. */
+#define outermost_context_p() (context_stack_depth == 0)
+
/* Nonzero if within a function (so symbols should be local, if
nothing says specifically). */