mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
Add suspend/resume support check.
This commit is contained in:
parent
df4e0dbe8d
commit
f670c1d502
1 changed files with 3 additions and 1 deletions
|
@ -419,7 +419,7 @@ public class CDebugTarget extends CDebugElement
|
||||||
*/
|
*/
|
||||||
public boolean canResume()
|
public boolean canResume()
|
||||||
{
|
{
|
||||||
return isSuspended() && isAvailable();
|
return getConfiguration().supportsResume() && isSuspended() && isAvailable();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
@ -427,6 +427,8 @@ public class CDebugTarget extends CDebugElement
|
||||||
*/
|
*/
|
||||||
public boolean canSuspend()
|
public boolean canSuspend()
|
||||||
{
|
{
|
||||||
|
if ( !getConfiguration().supportsSuspend() )
|
||||||
|
return false;
|
||||||
if ( !isSuspended() && isAvailable() )
|
if ( !isSuspended() && isAvailable() )
|
||||||
{
|
{
|
||||||
// only allow suspend if no threads are currently suspended
|
// only allow suspend if no threads are currently suspended
|
||||||
|
|
Loading…
Add table
Reference in a new issue