diff options
Diffstat (limited to 'gdb/d-exp.y')
-rw-r--r-- | gdb/d-exp.y | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/d-exp.y b/gdb/d-exp.y index 9e84a47..0481b14 100644 --- a/gdb/d-exp.y +++ b/gdb/d-exp.y @@ -487,9 +487,7 @@ PrimaryExpression: } 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); } |