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

Replaced the deprecated "evaluateExpressionTtoString" method of "ICDITarget.

This commit is contained in:
Mikhail Khodjaiants 2004-10-22 17:56:46 +00:00
parent bed0f1da44
commit d24ad69f5e
4 changed files with 8 additions and 16 deletions

View file

@ -1,4 +1,10 @@
2004-10-24 Alain Magloire
2004-10-22 Mikhail Khodjaiants
Replaced the deprecated "evaluateExpressionTtoString" method of "ICDITarget.
* CDebugTarget.java
* CStackFrame.java
* CExtendedMemoryBlockRetrieval.java
2004-10-22 Alain Magloire
Provide a context for ICDITarget.evaluateExpressionTtoString()
* cdi/org/eclipse/cdt/debug/core/cdi/model/ICDITarget.java

View file

@ -54,9 +54,6 @@ public class CExtendedMemoryBlockRetrieval implements IExtendedMemoryBlockRetrie
}
IDebugTarget target = selected.getDebugTarget();
if ( target instanceof CDebugTarget ) {
if ( address == null ) {
address = ((CDebugTarget)target).evaluateExpressionToString( expression );
}
if ( address != null ) {
try {
BigInteger a = ( address.startsWith( "0x" ) ) ? new BigInteger( address.substring( 2 ), 16 ) : new BigInteger( address ); //$NON-NLS-1$

View file

@ -16,7 +16,6 @@ import java.util.Arrays;
import java.util.Iterator;
import java.util.List;
import java.util.StringTokenizer;
import org.eclipse.cdt.core.CCorePlugin;
import org.eclipse.cdt.core.IAddress;
import org.eclipse.cdt.core.IAddressFactory;
@ -1866,16 +1865,6 @@ public class CDebugTarget extends CDebugElement implements ICDebugTarget, ICDIEv
fMemoryBlockRetrieval = memoryBlockRetrieval;
}
public String evaluateExpressionToString( String expression ) throws DebugException {
try {
return getCDITarget().evaluateExpressionToString( expression );
}
catch( CDIException e ) {
targetRequestFailed( e.getMessage(), null );
}
return null;
}
protected void failed( String message, Throwable e ) {
MultiStatus ms = new MultiStatus( CDebugModel.getPluginIdentifier(), ICDebugInternalConstants.STATUS_CODE_ERROR, message, null );
ms.add( new Status( IStatus.ERROR, CDebugModel.getPluginIdentifier(), ICDebugInternalConstants.STATUS_CODE_ERROR, e.getMessage(), e ) );

View file

@ -661,7 +661,7 @@ public class CStackFrame extends CDebugElement implements ICStackFrame, IRestart
*/
public String evaluateExpressionToString( String expression ) throws DebugException {
try {
return getCDITarget().evaluateExpressionToString( expression );
return getCDITarget().evaluateExpressionToString( getCDIStackFrame(), expression );
}
catch( CDIException e ) {
targetRequestFailed( e.getMessage(), null );