diff --git a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog index d42297816d9..eadf27c9c55 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.mi.core/ChangeLog @@ -1,3 +1,7 @@ +2005-10-18 Mikhail Khodjaiants + Bug 106632: Invalid detail value for arrays with dimension greater than 100. + * cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java + 2005-10-18 Mikhail Khodjaiants Bug 111568: Fix for corrupt stack messages not working. Applied patch from Timesys. diff --git a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java index 9d299021120..48129d47454 100644 --- a/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java +++ b/debug/org.eclipse.cdt.debug.mi.core/cdi/org/eclipse/cdt/debug/mi/core/cdi/model/Variable.java @@ -229,9 +229,9 @@ public abstract class Variable extends VariableDescriptor implements ICDIVariabl boolean childFake = false; ICDIType t = getType(); if (t instanceof ICDIArrayType) { - fn = "(" + fn + ")[" + i + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ // For Array gdb varobj only return the index, override here. int index = castingIndex + i; + fn = "(" + fn + ")[" + index + "]"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ childName = getName() + "[" + index + "]"; //$NON-NLS-1$ //$NON-NLS-2$ } else if (t instanceof ICDIPointerType) { ICDIType subType = ((ICDIPointerType)t).getComponentType();