diff options
author | Jim Blandy <jimb@codesourcery.com> | 2002-11-08 20:05:10 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2002-11-08 20:05:10 +0000 |
commit | 921e78cf01505c9a7039149a1646c50f8d010539 (patch) | |
tree | e410d3fb07d4747665be6f935911d5e5acdab90b /gdb/buildsym.h | |
parent | 9c1412c1a1a5e1fe7ffadb8a2e4cefe8bf7c4e9f (diff) | |
download | gdb-921e78cf01505c9a7039149a1646c50f8d010539.zip gdb-921e78cf01505c9a7039149a1646c50f8d010539.tar.gz gdb-921e78cf01505c9a7039149a1646c50f8d010539.tar.bz2 |
* 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.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/buildsym.h b/gdb/buildsym.h index 8a252cb..968a579 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). */ |