1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-05 07:15:39 +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() 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