diff options
Diffstat (limited to 'gdb/f-exp.y')
-rw-r--r-- | gdb/f-exp.y | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/f-exp.y b/gdb/f-exp.y index 6495e03..ffd52cf 100644 --- a/gdb/f-exp.y +++ b/gdb/f-exp.y @@ -461,12 +461,7 @@ variable: name_not_typename if (sym.symbol) { if (symbol_read_needs_frame (sym.symbol)) - { - if (innermost_block == 0 - || contained_in (sym.block, - innermost_block)) - innermost_block = sym.block; - } + innermost_block.update (sym); write_exp_elt_opcode (pstate, OP_VAR_VALUE); write_exp_elt_block (pstate, sym.block); write_exp_elt_sym (pstate, sym.symbol); |