From 92a29b47d76bc5345917523a0dec412a472d06ef Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Sat, 13 Apr 1991 22:21:23 +0000 Subject: [PATCH] * symtab.h (GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK): New defines for the blocks of a blockvector that contain global and file-static symbols and the first of the smaller scope contours. --- gdb/expread.y | 3 ++- gdb/symtab.h | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/expread.y b/gdb/expread.y index acced91a60..b59d4ec605 100755 --- a/gdb/expread.y +++ b/gdb/expread.y @@ -529,7 +529,8 @@ block : BLOCKNAME struct symtab *tem = lookup_symtab (copy_name ($1.stoken)); if (tem) - $$ = BLOCKVECTOR_BLOCK (BLOCKVECTOR (tem), 1); + $$ = BLOCKVECTOR_BLOCK + (BLOCKVECTOR (tem), STATIC_BLOCK); else error ("No file or function \"%s\".", copy_name ($1.stoken)); diff --git a/gdb/symtab.h b/gdb/symtab.h index e63c8795a9..0421357ec7 100644 --- a/gdb/symtab.h +++ b/gdb/symtab.h @@ -317,6 +317,11 @@ struct blockvector struct block *block[1]; }; +/* Special block numbers */ +#define GLOBAL_BLOCK 0 +#define STATIC_BLOCK 1 +#define FIRST_LOCAL_BLOCK 2 + struct block { /* Addresses in the executable code that are in this block. -- 2.34.1