aboutsummaryrefslogtreecommitdiff
path: root/gdb/expread.y
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-04-13 22:21:23 +0000
committerJohn Gilmore <gnu@cygnus>1991-04-13 22:21:23 +0000
commit92a29b47d76bc5345917523a0dec412a472d06ef (patch)
treea714fb9be8e6d91920b276d7544f6e174a996274 /gdb/expread.y
parentf96238813e81c4c11ff5afefa032b19ae5658491 (diff)
downloadgdb-92a29b47d76bc5345917523a0dec412a472d06ef.zip
gdb-92a29b47d76bc5345917523a0dec412a472d06ef.tar.gz
gdb-92a29b47d76bc5345917523a0dec412a472d06ef.tar.bz2
* 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.
Diffstat (limited to 'gdb/expread.y')
-rwxr-xr-xgdb/expread.y3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/expread.y b/gdb/expread.y
index acced91..b59d4ec 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));