From fcf978593fa44fc785e1dec1eb66cbf07048e0ea Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Thu, 12 May 2005 15:27:52 +0000 Subject: [PATCH] Bug 94905: Error examining structure contents in debugger. The structure's elements should inherit the enablement flag from parents. --- debug/org.eclipse.cdt.debug.core/ChangeLog | 5 +++++ .../org/eclipse/cdt/debug/internal/core/model/CVariable.java | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index 44a824f5603..5281245fceb 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-04-25 Mikhail Khodjaiants Update the source search path of the underlyuing debugger when the source containers are changed. 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 ); }