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:
parent
8f4ba58fe7
commit
0180598ed2
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue