1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Fire the "suspend" event when the target is suspended because of an error.

This commit is contained in:
Mikhail Khodjaiants 2004-02-23 18:56:28 +00:00
parent a1a3f31dda
commit 618b4f8e95
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,7 @@
2004-02-20 Mikhail Khodjaiants
Fire the "suspend" event when the target is suspended because of an error.
* CDebugTarget.java
2004-02-17 Mikhail Khodjaiants
Reset the current thread flag when resume.
* CThread.java

View file

@ -1547,6 +1547,7 @@ public class CDebugTarget extends CDebugElement
}
CDebugUtils.error( status, this );
}
fireSuspendEvent( DebugEvent.UNSPECIFIED );
}
private void handleSuspendedBySolibEvent( ICDISharedLibraryEvent solibEvent )
@ -1876,16 +1877,16 @@ public class CDebugTarget extends CDebugElement
*/
public void setCurrentThread( IThread thread ) throws DebugException
{
if ( !isSuspended() || !isAvailable() || thread == null || !(thread instanceof CThread) )
if ( !isSuspended() || !isAvailable() || !(thread instanceof CThread) )
return;
try
{
CThread oldThread = (CThread)getCurrentThread();
if ( !thread.equals( oldThread ) )
{
getCDITarget().setCurrentThread( ((CThread)thread).getCDIThread() );
if ( oldThread != null )
oldThread.setCurrent( false );
getCDITarget().setCurrentThread( ((CThread)thread).getCDIThread() );
((CThread)thread).setCurrent( true );
}
}