mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 06:32:10 +02:00
Do not allow to modify aggregate variables.
This commit is contained in:
parent
3befb016c8
commit
a83210a3a1
1 changed files with 8 additions and 5 deletions
|
@ -47,12 +47,15 @@ public abstract class CModificationVariable extends CVariable
|
|||
{
|
||||
try
|
||||
{
|
||||
ICDIValue currentValue = getCurrentValue();
|
||||
if ( currentValue != null )
|
||||
IValue value = getValue();
|
||||
if ( value != null && value instanceof ICValue )
|
||||
{
|
||||
return !( currentValue instanceof ICDIArrayValue ||
|
||||
currentValue instanceof ICDIStructureValue ||
|
||||
currentValue instanceof ICDIStringValue );
|
||||
switch( ((ICValue)value).getType() )
|
||||
{
|
||||
case ICValue.TYPE_POINTER:
|
||||
return true;
|
||||
}
|
||||
return !( value.hasVariables() );
|
||||
}
|
||||
}
|
||||
catch( DebugException e )
|
||||
|
|
Loading…
Add table
Reference in a new issue