X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fbuildsym.h;h=25fe9b14d37f43b7576ce6d52b7634343320586c;hb=9b700aad366dceee82141afc69b6ee69802b90c9;hp=d023aa3e855c6d0d4a34984f4568d99d48152b0e;hpb=99d9066e57c4ff29e314af000b11c62ce6253b59;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/buildsym.h b/gdb/buildsym.h index d023aa3e85..25fe9b14d3 100644 --- a/gdb/buildsym.h +++ b/gdb/buildsym.h @@ -173,11 +173,8 @@ EXTERN int context_stack_depth; EXTERN int context_stack_size; -/* Macro "function" for popping contexts from the stack. Pushing is - done by a real function, push_context. This returns a pointer to a - struct context_stack. */ - -#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). */ @@ -269,6 +266,8 @@ extern void buildsym_init (void); extern struct context_stack *push_context (int desc, CORE_ADDR valu); +extern struct context_stack *pop_context (void); + extern void record_line (struct subfile *subfile, int line, CORE_ADDR pc); extern void start_symtab (char *name, char *dirname, CORE_ADDR start_addr); @@ -277,11 +276,11 @@ extern int hashname (char *name); extern void free_pending_blocks (void); -/* FIXME: Note that this is used only in buildsym.c and dstread.c, - which should be fixed to not need direct access to - make_blockvector. */ +/* OBSOLETE FIXME: Note that this is used only in buildsym.c and dstread.c, */ +/* OBSOLETE which should be fixed to not need direct access to */ +/* OBSOLETE make_blockvector. */ -extern struct blockvector *make_blockvector (struct objfile *objfile); +/* OBSOLETE extern struct blockvector *make_blockvector (struct objfile *objfile); */ /* FIXME: Note that this is used only in buildsym.c and dstread.c, which should be fixed to not need direct access to