mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Check if the underlying debugger supports expression evaluation in the "canEvaluate" method.
This commit is contained in:
parent
63628b58a1
commit
0f257f5573
2 changed files with 10 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2003-05-06 Mikhail Khodjaiants
|
||||||
|
Check if the underlying debugger supports expression evaluation in the "canEvaluate" method.
|
||||||
|
* CDebugTarget.java
|
||||||
|
|
||||||
2003-05-06 Mikhail Khodjaiants
|
2003-05-06 Mikhail Khodjaiants
|
||||||
Added tooltips to breakpoints and watchpoints.
|
Added tooltips to breakpoints and watchpoints.
|
||||||
* CAddressBreakpoint.java
|
* CAddressBreakpoint.java
|
||||||
|
|
|
@ -2029,6 +2029,11 @@ public class CDebugTarget extends CDebugElement
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected boolean supportsExpressionEvaluation()
|
||||||
|
{
|
||||||
|
return getConfiguration().supportsExpressionEvaluation();
|
||||||
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.debug.core.ICExpressionEvaluator#evaluateExpressionToString(String)
|
* @see org.eclipse.cdt.debug.core.ICExpressionEvaluator#evaluateExpressionToString(String)
|
||||||
*/
|
*/
|
||||||
|
@ -2050,7 +2055,7 @@ public class CDebugTarget extends CDebugElement
|
||||||
*/
|
*/
|
||||||
public boolean canEvaluate()
|
public boolean canEvaluate()
|
||||||
{
|
{
|
||||||
return isAvailable() && isSuspended();
|
return supportsExpressionEvaluation() && isAvailable() && isSuspended();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|
Loading…
Add table
Reference in a new issue