Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2005-05-12 15:34:35 +0000
committerMikhail Khodjaiants2005-05-12 15:34:35 +0000
commit95673ad075ef8aec1fa1b5f9cb406dc79c93e25c (patch)
tree12ab2ea522f6ea0fff57bbf541f6f82bfd3591a4
parent75853dfdbce9995ae195bbe4b237c7d65d7a521a (diff)
downloadorg.eclipse.cdt-95673ad075ef8aec1fa1b5f9cb406dc79c93e25c.tar.gz
org.eclipse.cdt-95673ad075ef8aec1fa1b5f9cb406dc79c93e25c.tar.xz
org.eclipse.cdt-95673ad075ef8aec1fa1b5f9cb406dc79c93e25c.zip
Bug 94905: Error examining structure contents in debugger. The structure's elements should inherit the enablement flag from parents.
-rw-r--r--debug/org.eclipse.cdt.debug.core/ChangeLog5
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java2
2 files changed, 6 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog
index ab74a626ae0..2342e98bcca 100644
--- a/debug/org.eclipse.cdt.debug.core/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.core/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-12 Mikhail Khodjaiants
+ Bug 94905: Error examining structure contents in debugger.
+ The structure's elements should inherit the enablement flag from parents.
+ * CVariable.java
+
2005-03-17 Mikhail Khodjaiants
If casting of variable to a type or array causes an error, the status
of the variable is set to "error" and it can't be reset by subsequent castings.
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java
index 1cf0147141d..ef42260d32a 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java
@@ -344,7 +344,7 @@ public class CVariable extends AbstractCVariable implements ICDIEventListener {
fName = cdiVariableObject.getName();
createOriginal( cdiVariableObject );
}
- fIsEnabled = !isBookkeepingEnabled();
+ fIsEnabled = ( parent instanceof AbstractCValue ) ? ((AbstractCValue)parent).getParentVariable().isEnabled() : !isBookkeepingEnabled();
getCDISession().getEventManager().addEventListener( this );
}

Back to the top