mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-09-04 22:23:28 +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();
|
List vars = getCDIVariables();
|
||||||
if ( getType() == ICValue.TYPE_ARRAY )
|
if ( getType() == ICValue.TYPE_ARRAY )
|
||||||
{
|
{
|
||||||
int length = getNumberOfChildren();
|
if ( vars.size() > 0 )
|
||||||
if ( length > 0 )
|
fVariables = CArrayPartition.splitArray( (CDebugTarget)getDebugTarget(), vars, 0, vars.size() - 1 );
|
||||||
fVariables = CArrayPartition.splitArray( (CDebugTarget)getDebugTarget(), vars, 0, length - 1 );
|
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue