mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 12:55:40 +02:00
Added the "getType" method to ICValue.
This commit is contained in:
parent
73d595ea0e
commit
d636abc351
4 changed files with 20 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-10-06 Mikhail Khodjaiants
|
||||||
|
Added the "getType" method to ICValue.
|
||||||
|
* ICValue.java
|
||||||
|
* AbstractCValue.java
|
||||||
|
* CArrayPartitionValue.java
|
||||||
|
* CValue.java
|
||||||
|
|
||||||
2004-09-30 Mikhail Khodjaiants
|
2004-09-30 Mikhail Khodjaiants
|
||||||
Implementing adapters for the platform's Memory view.
|
Implementing adapters for the platform's Memory view.
|
||||||
* CExtendedMemoryBlockRetrieval.java: new
|
* CExtendedMemoryBlockRetrieval.java: new
|
||||||
|
|
|
@ -10,12 +10,15 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.debug.core.model;
|
package org.eclipse.cdt.debug.core.model;
|
||||||
|
|
||||||
|
import org.eclipse.debug.core.DebugException;
|
||||||
import org.eclipse.debug.core.model.IValue;
|
import org.eclipse.debug.core.model.IValue;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extends the IValue interface by C/C++ specific functionality.
|
* Extends the IValue interface by C/C++ specific functionality.
|
||||||
*/
|
*/
|
||||||
public interface ICValue extends IValue, ICDebugElement {
|
public interface ICValue extends IValue, ICDebugElement {
|
||||||
|
|
||||||
|
ICType getType() throws DebugException;
|
||||||
|
|
||||||
String evaluateAsExpression();
|
String evaluateAsExpression();
|
||||||
}
|
}
|
|
@ -16,6 +16,7 @@ import java.util.List;
|
||||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIVariable;
|
import org.eclipse.cdt.debug.core.cdi.model.ICDIVariable;
|
||||||
import org.eclipse.cdt.debug.core.model.ICDebugElementStatus;
|
import org.eclipse.cdt.debug.core.model.ICDebugElementStatus;
|
||||||
import org.eclipse.cdt.debug.core.model.ICStackFrame;
|
import org.eclipse.cdt.debug.core.model.ICStackFrame;
|
||||||
|
import org.eclipse.cdt.debug.core.model.ICType;
|
||||||
import org.eclipse.debug.core.DebugEvent;
|
import org.eclipse.debug.core.DebugEvent;
|
||||||
import org.eclipse.debug.core.DebugException;
|
import org.eclipse.debug.core.DebugException;
|
||||||
import org.eclipse.debug.core.model.IVariable;
|
import org.eclipse.debug.core.model.IVariable;
|
||||||
|
@ -165,4 +166,8 @@ public class CArrayPartitionValue extends AbstractCValue {
|
||||||
((AbstractCVariable)it.next()).resetValue();
|
((AbstractCVariable)it.next()).resetValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ICType getType() throws DebugException {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
|
@ -43,7 +43,6 @@ import org.eclipse.debug.core.model.IVariable;
|
||||||
* Represents the value of a variable in the CDI model.
|
* Represents the value of a variable in the CDI model.
|
||||||
*/
|
*/
|
||||||
public class CValue extends AbstractCValue {
|
public class CValue extends AbstractCValue {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cached value.
|
* Cached value.
|
||||||
*/
|
*/
|
||||||
|
@ -455,4 +454,9 @@ public class CValue extends AbstractCValue {
|
||||||
((AbstractCVariable)it.next()).resetValue();
|
((AbstractCVariable)it.next()).resetValue();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public ICType getType() throws DebugException {
|
||||||
|
AbstractCVariable var = getParentVariable();
|
||||||
|
return ( var instanceof CVariable ) ? ((CVariable)var).getType() : null;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue