1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-05 00:36:16 +02:00

Bug 106632: Invalid detail value for arrays with dimension greater than 100.

This commit is contained in:
Mikhail Khodjaiants 2005-10-18 21:45:18 +00:00
parent a73e7e9970
commit 6f2faec4eb
2 changed files with 5 additions and 1 deletions

View file

@ -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.

View file

@ -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();