1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Use the number of actual children as a length of array instead of the number returned by gdb.

This commit is contained in:
Mikhail Khodjaiants 2002-10-07 18:02:48 +00:00
parent 8f4ba58fe7
commit 0180598ed2

View file

@ -129,9 +129,8 @@ public class CValue extends CDebugElement implements ICValue
List vars = getCDIVariables();
if ( getType() == ICValue.TYPE_ARRAY )
{
int length = getNumberOfChildren();
if ( length > 0 )
fVariables = CArrayPartition.splitArray( (CDebugTarget)getDebugTarget(), vars, 0, length - 1 );
if ( vars.size() > 0 )
fVariables = CArrayPartition.splitArray( (CDebugTarget)getDebugTarget(), vars, 0, vars.size() - 1 );
}
else
{