1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 08:55:25 +02:00

Check if target is suspended when switch to thread.

This commit is contained in:
Mikhail Khodjaiants 2002-09-23 20:57:03 +00:00
parent 0c9fd43286
commit 941618eaca

View file

@ -1823,7 +1823,7 @@ public class CDebugTarget extends CDebugElement
*/
public void setCurrentThread( IThread thread ) throws DebugException
{
if ( !isAvailable() || thread == null || !(thread instanceof CThread) )
if ( !isSuspended() || !isAvailable() || thread == null || !(thread instanceof CThread) )
{
return;
}