1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-25 18:05:33 +02:00

Fix for bug 82184: arrayboundsexception on display of array variable.

This commit is contained in:
Mikhail Khodjaiants 2005-01-04 21:45:27 +00:00
parent bab6bd72b7
commit c9c2c1498e
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2005-01-04 Mikhail Khodjaiants
Fix for bug 82184: arrayboundsexception on display of array variable.
* CIndexedValue.java
2004-12-23 Mikhail Khodjaiants
Cleanup.
* CMemoryBlockExtension.java

View file

@ -223,7 +223,7 @@ public class CIndexedValue extends AbstractCValue implements IIndexedValue {
private IVariable[] getVariables0( int offset, int length ) throws DebugException {
IVariable[] result = new IVariable[length];
int firstIndex = getPartitionIndex( offset );
int lastIndex = getPartitionIndex( offset + length );
int lastIndex = getPartitionIndex( offset + Math.max( length - 1, 0 ) );
for ( int i = firstIndex; i <= lastIndex; ++i ) {
synchronized( this ) {
if ( !isPartitionLoaded( i ) ) {