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:
parent
a1a3f31dda
commit
618b4f8e95
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue