1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Defect 268629

This commit is contained in:
Randy Rohrbach 2009-03-14 03:16:19 +00:00
parent 2fc98aa21d
commit 25b0ee6d2e
4 changed files with 41 additions and 1 deletions

View file

@ -469,6 +469,16 @@ public class RegisterBitFieldVMNode extends AbstractExpressionVMNode
update.setProperty(IRegisterVMConstants.PROP_CURRENT_MNEMONIC_LONG_NAME, mnemonic.getLongName());
update.setProperty(IRegisterVMConstants.PROP_CURRENT_MNEMONIC_SHORT_NAME, mnemonic.getShortName());
}
/*
* If this node has an expression then it has already been filled in by the higher
* level logic. If not then we need to supply something. In the previous version
* ( pre-property based ) we supplied the name. So we will do that here also.
*/
IExpression expression = (IExpression)DebugPlugin.getAdapter(update.getElement(), IExpression.class);
if (expression == null) {
update.setProperty(AbstractExpressionVMNode.PROP_ELEMENT_EXPRESSION, data.getName());
}
}
@Override

View file

@ -320,7 +320,17 @@ public class RegisterGroupVMNode extends AbstractExpressionVMNode
@ConfinedToDsfExecutor("getSession().getExecutor()")
protected void fillRegisterGroupDataProperties(IPropertiesUpdate update, IRegisterGroupDMData data) {
update.setProperty(PROP_NAME, data.getName());
update.setProperty(PROP_REGISTER_GROUP_DESCRIPTION, data.getName());
update.setProperty(PROP_REGISTER_GROUP_DESCRIPTION, data.getDescription());
/*
* If this node has an expression then it has already been filled in by the higher
* level logic. If not then we need to supply something. In the previous version
* ( pre-property based ) we supplied the name. So we will do that here also.
*/
IExpression expression = (IExpression)DebugPlugin.getAdapter(update.getElement(), IExpression.class);
if (expression == null) {
update.setProperty(AbstractExpressionVMNode.PROP_ELEMENT_EXPRESSION, data.getName());
}
}
public int getDeltaFlags(Object e) {

View file

@ -448,6 +448,16 @@ public class RegisterVMNode extends AbstractExpressionVMNode
update.setProperty(IRegisterVMConstants.PROP_IS_READONCE, data.isReadOnce());
update.setProperty(IRegisterVMConstants.PROP_IS_WRITEABLE, data.isWriteable());
update.setProperty(IRegisterVMConstants.PROP_IS_WRITEONCE, data.isWriteOnce());
/*
* If this node has an expression then it has already been filled in by the higher
* level logic. If not then we need to supply something. In the previous version
* ( pre-property based ) we supplied the name. So we will do that here also.
*/
IExpression expression = (IExpression)DebugPlugin.getAdapter(update.getElement(), IExpression.class);
if (expression == null) {
update.setProperty(AbstractExpressionVMNode.PROP_ELEMENT_EXPRESSION, data.getName());
}
}
/*

View file

@ -598,6 +598,16 @@ public class VariableVMNode extends AbstractExpressionVMNode
if (type != null) {
update.setProperty(PROP_VARIABLE_BASIC_TYPE, type.name());
}
/*
* If this node has an expression then it has already been filled in by the higher
* level logic. If not then we need to supply something. In the previous version
* ( pre-property based ) we supplied the name. So we will do that here also.
*/
IExpression expression = (IExpression)DebugPlugin.getAdapter(update.getElement(), IExpression.class);
if (expression == null) {
update.setProperty(AbstractExpressionVMNode.PROP_ELEMENT_EXPRESSION, data.getName());
}
}
/**