diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-08 20:33:22 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-10-08 20:33:22 +0000 |
commit | 443abae18cc0f7c2654a6d0ddda239a4c6c846a5 (patch) | |
tree | 76d1f9fd7a9bb44a320b34e230bc61c687ad3956 /gdb/valops.c | |
parent | 1aa6938eb37f89db944795a21aadb98af7e44399 (diff) | |
download | gdb-443abae18cc0f7c2654a6d0ddda239a4c6c846a5.zip gdb-443abae18cc0f7c2654a6d0ddda239a4c6c846a5.tar.gz gdb-443abae18cc0f7c2654a6d0ddda239a4c6c846a5.tar.bz2 |
* findvar.c, value.h (symbol_read_needs_frame): New function.
* c-exp.y, m2-exp.y: Call it instead of having our own switch on
the symbol's class.
* valops.c (value_of_variable): Use symbol_read_needs_frame to
decide whether we care about finding a frame.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index 82d0f58..1c7e3b9 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -511,7 +511,7 @@ value_of_variable (var, b) else { fr = block_innermost_frame (b); - if (fr == NULL) + if (fr == NULL && symbol_read_needs_frame (var)) { if (BLOCK_FUNCTION (b) != NULL && SYMBOL_NAME (BLOCK_FUNCTION (b)) != NULL) |