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

Clear the value string if the target supports passive variable updating.

This commit is contained in:
Ken Ryall 2006-04-28 03:15:54 +00:00
parent 26bde110fa
commit 2b0840e29a

View file

@ -19,6 +19,7 @@ import java.util.List;
import org.eclipse.cdt.core.IAddress;
import org.eclipse.cdt.core.IAddressFactory;
import org.eclipse.cdt.debug.core.cdi.CDIException;
import org.eclipse.cdt.debug.core.cdi.model.ICDITargetConfiguration2;
import org.eclipse.cdt.debug.core.cdi.model.ICDIValue;
import org.eclipse.cdt.debug.core.cdi.model.ICDIVariable;
import org.eclipse.cdt.debug.core.cdi.model.type.ICDICharValue;
@ -180,6 +181,12 @@ public class CValue extends AbstractCValue {
fValueString = null;
resetStatus();
}
else {
if (getCDITarget().getConfiguration() instanceof ICDITargetConfiguration2 &&
((ICDITargetConfiguration2)getCDITarget().getConfiguration()).supportsPassiveVariableUpdate())
fValueString = null;
}
Iterator it = fVariables.iterator();
while( it.hasNext() ) {
((AbstractCVariable)it.next()).setChanged( changed );