aboutsummaryrefslogtreecommitdiff
path: root/gdb/go-exp.y
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/go-exp.y')
-rw-r--r--gdb/go-exp.y5
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/go-exp.y b/gdb/go-exp.y
index c1ddfa9..4e017fe 100644
--- a/gdb/go-exp.y
+++ b/gdb/go-exp.y
@@ -611,10 +611,7 @@ variable: name_not_typename
}
write_exp_elt_opcode (pstate, OP_VAR_VALUE);
- /* We want to use the selected frame, not
- another more inner frame which happens to
- be in the same block. */
- write_exp_elt_block (pstate, NULL);
+ write_exp_elt_block (pstate, sym.block);
write_exp_elt_sym (pstate, sym.symbol);
write_exp_elt_opcode (pstate, OP_VAR_VALUE);
}