Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2004-02-20 00:58:53 -0500
committerMikhail Khodjaiants2004-02-20 00:58:53 -0500
commita9c135279973cac30f5ba5c6b4f254f610fc1afe (patch)
treeefc5706742a24e8bad2738a140983352c4a1d97f
parent009c9421a2d0a035cf026879ecb65dbd3d586fcd (diff)
downloadorg.eclipse.cdt-a9c135279973cac30f5ba5c6b4f254f610fc1afe.tar.gz
org.eclipse.cdt-a9c135279973cac30f5ba5c6b4f254f610fc1afe.tar.xz
org.eclipse.cdt-a9c135279973cac30f5ba5c6b4f254f610fc1afe.zip
Fire the "suspend" event when the target is suspended because of an error.CDT_1_2_1_RC2
-rw-r--r--debug/org.eclipse.cdt.debug.core/ChangeLog4
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java5
2 files changed, 7 insertions, 2 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog
index 4f22e03c56..72a0186e21 100644
--- a/debug/org.eclipse.cdt.debug.core/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.core/ChangeLog
@@ -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
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java
index 7950489a2f..c799b572da 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java
@@ -1560,6 +1560,7 @@ public class CDebugTarget extends CDebugElement
}
CDebugUtils.error( status, this );
}
+ fireSuspendEvent( DebugEvent.UNSPECIFIED );
}
private void handleSuspendedBySolibEvent( ICDISharedLibraryEvent solibEvent )
@@ -1889,16 +1890,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 );
}
}

Back to the top