Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorMikhail Khodjaiants2003-04-22 14:40:15 +0000
committerMikhail Khodjaiants2003-04-22 14:40:15 +0000
commite51ac980e77a73e322b953877427f8653d10fe77 (patch)
treed98e24882e6dfd7a2c365613e3e128fcf3ad8428 /debug
parent966d0a1670e6e89201744bb584f871610c0b61f9 (diff)
downloadorg.eclipse.cdt-e51ac980e77a73e322b953877427f8653d10fe77.tar.gz
org.eclipse.cdt-e51ac980e77a73e322b953877427f8653d10fe77.tar.xz
org.eclipse.cdt-e51ac980e77a73e322b953877427f8653d10fe77.zip
Disconnect: terminate should be called from the disconnect event handler.
Diffstat (limited to 'debug')
-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.java13
2 files changed, 7 insertions, 10 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog
index 057cd99614f..5b98ecf3d67 100644
--- a/debug/org.eclipse.cdt.debug.core/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.core/ChangeLog
@@ -1,3 +1,7 @@
+2003-04-22 Mikhail Khodjaiants
+ Disconnect: terminate should be called from the disconnect event handler.
+ * CDebugTarget.java
+
2003-04-21 Mikhail Khodjaiants
Disconnnect: target should be disconnected before terminate the session
because of race condition.
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 a24899eccc6..8fb06161182 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
@@ -802,16 +802,6 @@ public class CDebugTarget extends CDebugElement
try
{
getCDITarget().disconnect();
- try
- {
- // wait until the target is disconnected ????
- for( int i = 0; !isDisconnected() && i < 5; ++i )
- Thread.sleep( 1000 );
- }
- catch( InterruptedException ie )
- {
- }
- getCDISession().terminate();
}
catch( CDIException e )
{
@@ -1179,8 +1169,11 @@ public class CDebugTarget extends CDebugElement
{
logError( e );
}
+ fireChangeEvent( DebugEvent.STATE );
+/*
cleanup();
fireTerminateEvent();
+*/
}
}

Back to the top