mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-05 15:25:49 +02:00
Fix for bug 82184: arrayboundsexception on display of array variable.
This commit is contained in:
parent
bab6bd72b7
commit
c9c2c1498e
2 changed files with 5 additions and 1 deletions
|
@ -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
|
2004-12-23 Mikhail Khodjaiants
|
||||||
Cleanup.
|
Cleanup.
|
||||||
* CMemoryBlockExtension.java
|
* CMemoryBlockExtension.java
|
||||||
|
|
|
@ -223,7 +223,7 @@ public class CIndexedValue extends AbstractCValue implements IIndexedValue {
|
||||||
private IVariable[] getVariables0( int offset, int length ) throws DebugException {
|
private IVariable[] getVariables0( int offset, int length ) throws DebugException {
|
||||||
IVariable[] result = new IVariable[length];
|
IVariable[] result = new IVariable[length];
|
||||||
int firstIndex = getPartitionIndex( offset );
|
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 ) {
|
for ( int i = firstIndex; i <= lastIndex; ++i ) {
|
||||||
synchronized( this ) {
|
synchronized( this ) {
|
||||||
if ( !isPartitionLoaded( i ) ) {
|
if ( !isPartitionLoaded( i ) ) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue