mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-25 18:05:33 +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()
|
||||
{
|
||||
return isSuspended() && isAvailable();
|
||||
return getConfiguration().supportsResume() && isSuspended() && isAvailable();
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
@ -427,6 +427,8 @@ public class CDebugTarget extends CDebugElement
|
|||
*/
|
||||
public boolean canSuspend()
|
||||
{
|
||||
if ( !getConfiguration().supportsSuspend() )
|
||||
return false;
|
||||
if ( !isSuspended() && isAvailable() )
|
||||
{
|
||||
// only allow suspend if no threads are currently suspended
|
||||
|
|
Loading…
Add table
Reference in a new issue