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:
parent
0c9fd43286
commit
941618eaca
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue