Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2002-09-11 00:15:49 +0000
committerAlain Magloire2002-09-11 00:15:49 +0000
commit68b68482f3dee5c72647578595faf43be4369858 (patch)
treecf1a7574adbbe9cc05ed46eb57c297fb0fa1e823
parent43e52e0f88e4d56032dcdea09965086bebbbb239 (diff)
downloadorg.eclipse.cdt-68b68482f3dee5c72647578595faf43be4369858.tar.gz
org.eclipse.cdt-68b68482f3dee5c72647578595faf43be4369858.tar.xz
org.eclipse.cdt-68b68482f3dee5c72647578595faf43be4369858.zip
ArrayIndexOutOfBound bug fix.
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CArrayPartitionValue.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CArrayPartitionValue.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CArrayPartitionValue.java
index 651d80a3e14..66eaf25a3d6 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CArrayPartitionValue.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CArrayPartitionValue.java
@@ -98,8 +98,9 @@ public class CArrayPartitionValue extends CDebugElement implements ICValue
if ( fVariables.isEmpty() )
{
fVariables = new ArrayList( getEnd() - getStart() + 1 );
- for ( int i = getStart(); i <= getEnd(); ++i )
+ for ( int i = getStart(); i < getEnd(); ++i ) {
fVariables.add( new CArrayEntryVariable( (CDebugTarget)getDebugTarget(), (ICDIVariable)fCDIVariables.get( i - getStart() ), i ) );
+ }
}
return (IVariable[])fVariables.toArray( new IVariable[fVariables.size()] );
}

Back to the top