Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEugene Tarassov2015-08-18 21:12:34 -0400
committerEugene Tarassov2015-08-18 21:12:34 -0400
commit3b1f240e0fbaf2e60e0efc998c084f53ac90de2e (patch)
treeace3cd157aecea633155296b15280f54e051308c /plugins
parentb112b9b66f4e6d8d44950348fbcc78934c65c67e (diff)
downloadorg.eclipse.tcf-3b1f240e0fbaf2e60e0efc998c084f53ac90de2e.tar.gz
org.eclipse.tcf-3b1f240e0fbaf2e60e0efc998c084f53ac90de2e.tar.xz
org.eclipse.tcf-3b1f240e0fbaf2e60e0efc998c084f53ac90de2e.zip
Bug 474384 - Variables view still shows local variables after resume
The code changed to disable modification of values shown in the Variables view while the context is running.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExpression.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExpression.java b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExpression.java
index 1a9de3977..a9b078176 100644
--- a/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExpression.java
+++ b/plugins/org.eclipse.tcf.debug.ui/src/org/eclipse/tcf/internal/debug/ui/model/TCFNodeExpression.java
@@ -715,6 +715,7 @@ public class TCFNodeExpression extends TCFNode implements IElementEditor, ICastT
}
void onRegisterValueChanged() {
+ prev_value = null;
value.reset();
type.reset();
type_name.reset();
@@ -726,6 +727,7 @@ public class TCFNodeExpression extends TCFNode implements IElementEditor, ICastT
}
void onMemoryChanged() {
+ prev_value = null;
value.reset();
type.reset();
type_name.reset();
@@ -2035,6 +2037,17 @@ public class TCFNodeExpression extends TCFNode implements IElementEditor, ICastT
done(node.is_empty || node.script != null);
return;
}
+ TCFNode n = node.getRootExpression().parent;
+ if (n instanceof TCFNodeStackFrame) {
+ TCFNodeExecContext exe = (TCFNodeExecContext)n.parent;
+ TCFDataCache<TCFContextState> state_cache = exe.getState();
+ if (!state_cache.validate(this)) return;
+ TCFContextState state_data = state_cache.getData();
+ if (state_data == null || !state_data.is_suspended) {
+ done(Boolean.FALSE);
+ return;
+ }
+ }
if (!node.is_empty && node.enabled) {
if (!node.rem_expression.validate(this)) return;
IExpressions.Expression exp = node.rem_expression.getData();

Back to the top