From a323aa42f045848604b7d0f39ad0b83f9bcabd30 Mon Sep 17 00:00:00 2001 From: Alain Magloire Date: Wed, 12 Feb 2003 21:17:42 +0000 Subject: [PATCH] Check the grand Children also --- .../org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java index d30dac9f69d..a6e520fe295 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java +++ b/debug/org.eclipse.cdt.debug.mi.core/src/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java @@ -53,6 +53,12 @@ public class Variable extends CObject implements ICDIVariable { Variable variable = (Variable)children[i]; if (name.equals(variable.getMIVar().getVarName())) { return variable; + } else { + // Look also in the grandchildren. + Variable grandChild = variable.getChild(name); + if (grandChild != null) { + return grandChild; + } } } return null;