1
0
Fork 0
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:
Mikhail Khodjaiants 2002-09-18 15:07:48 +00:00
parent df4e0dbe8d
commit f670c1d502

View file

@ -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