diff options
Diffstat (limited to 'gdb/go-exp.y')
-rw-r--r-- | gdb/go-exp.y | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/gdb/go-exp.y b/gdb/go-exp.y index 2eb69d1..a96e655 100644 --- a/gdb/go-exp.y +++ b/gdb/go-exp.y @@ -552,12 +552,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); |