diff options
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r-- | gdb/c-exp.y | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y index a8a4caf..351505e 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -1072,10 +1072,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); } |