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.
This commit is contained in:
parent
f4ee58bde9
commit
2d5a88dc50
|
@ -1,3 +1,8 @@
|
||||||
|
2015-10-25 Iain Buclaw <ibuclaw@gdcproject.org>
|
||||||
|
|
||||||
|
* d-exp.y: Remove an obsolete comment and propagate the block
|
||||||
|
information to the produced expression.
|
||||||
|
|
||||||
2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
|
2015-10-24 Simon Marchi <simon.marchi@polymtl.ca>
|
||||||
|
|
||||||
* tui/tui-data.c (tui_add_to_source_windows): Remove void *
|
* tui/tui-data.c (tui_add_to_source_windows): Remove void *
|
||||||
|
|
|
@ -487,9 +487,7 @@ PrimaryExpression:
|
||||||
}
|
}
|
||||||
|
|
||||||
write_exp_elt_opcode (pstate, OP_VAR_VALUE);
|
write_exp_elt_opcode (pstate, OP_VAR_VALUE);
|
||||||
/* We want to use the selected frame, not another more inner frame
|
write_exp_elt_block (pstate, sym.block);
|
||||||
which happens to be in the same block. */
|
|
||||||
write_exp_elt_block (pstate, NULL);
|
|
||||||
write_exp_elt_sym (pstate, sym.symbol);
|
write_exp_elt_sym (pstate, sym.symbol);
|
||||||
write_exp_elt_opcode (pstate, OP_VAR_VALUE);
|
write_exp_elt_opcode (pstate, OP_VAR_VALUE);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue