summaryrefslogtreecommitdiff
path: root/gdb/d-exp.y
diff options
context:
space:
mode:
authorIain Buclaw <ibuclaw@gdcproject.org>2015-10-25 09:17:24 +0100
committerIain Buclaw <ibuclaw@gdcproject.org>2015-10-25 09:17:24 +0100
commit2d5a88dc5005a4f4b0584d02719e479645409e92 (patch)
treef2e74c2ed3ea4f18258c97629eef577d4e20e309 /gdb/d-exp.y
parentf4ee58bde946ec87c8ead17d7b47c1c7bcb7c3f6 (diff)
downloadbinutils-gdb-2d5a88dc5005a4f4b0584d02719e479645409e92.tar.gz
Re-apply change for handling non-local references in nested functions.
gdb/ChangeLog: * d-exp.y: Remove an obsolete comment and propagate the block information to the produced expression.
Diffstat (limited to 'gdb/d-exp.y')
-rw-r--r--gdb/d-exp.y4
1 files changed, 1 insertions, 3 deletions
diff --git a/gdb/d-exp.y b/gdb/d-exp.y
index 9e84a47de0f..0481b14d5ff 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);
}