Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-09-10 01:56:22 -0400
committerUwe Stieber2012-09-10 03:03:44 -0400
commit9d413ed33d40d5b1af18c20dcd84469b891a8317 (patch)
tree3e4dde23a21bc04f337af8779d1aca065b3452a2 /target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core
parente5c6bcdfc2ddf583834f57715abd13bf0d22e9f6 (diff)
downloadorg.eclipse.tcf-9d413ed33d40d5b1af18c20dcd84469b891a8317.tar.gz
org.eclipse.tcf-9d413ed33d40d5b1af18c20dcd84469b891a8317.tar.xz
org.eclipse.tcf-9d413ed33d40d5b1af18c20dcd84469b891a8317.zip
Target Explorer: Fix "Remote Debugger" launches do not terminate if last context got removed from the launch
Diffstat (limited to 'target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core')
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/src/org/eclipse/tcf/te/tcf/launch/core/lm/delegates/AttachLaunchManagerDelegate.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/src/org/eclipse/tcf/te/tcf/launch/core/lm/delegates/AttachLaunchManagerDelegate.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/src/org/eclipse/tcf/te/tcf/launch/core/lm/delegates/AttachLaunchManagerDelegate.java
index c7849c621..790808439 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/src/org/eclipse/tcf/te/tcf/launch/core/lm/delegates/AttachLaunchManagerDelegate.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/src/org/eclipse/tcf/te/tcf/launch/core/lm/delegates/AttachLaunchManagerDelegate.java
@@ -23,6 +23,7 @@ import org.eclipse.debug.core.ILaunchConfigurationListener;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.tcf.core.AbstractPeer;
import org.eclipse.tcf.core.TransientPeer;
+import org.eclipse.tcf.internal.debug.launch.TCFLaunchDelegate;
import org.eclipse.tcf.protocol.IPeer;
import org.eclipse.tcf.protocol.Protocol;
import org.eclipse.tcf.te.launch.core.lm.delegates.DefaultLaunchManagerDelegate;
@@ -68,6 +69,7 @@ public class AttachLaunchManagerDelegate extends DefaultLaunchManagerDelegate im
super.updateLaunchConfigAttributes(wc, launchSpec);
wc.setAttribute(IAttachLaunchAttributes.ATTR_ATTACH_SERVICES, (List<?>)null);
+ wc.setAttribute(TCFLaunchDelegate.ATTR_DISCONNECT_ON_CTX_EXIT, false);
copySpecToConfig(launchSpec, wc);
wc.rename(getDefaultLaunchName(wc));
@@ -81,6 +83,7 @@ public class AttachLaunchManagerDelegate extends DefaultLaunchManagerDelegate im
super.initLaunchConfigAttributes(wc, launchSpec);
wc.setAttribute(IAttachLaunchAttributes.ATTR_ATTACH_SERVICES, (List<?>)null);
+ wc.setAttribute(TCFLaunchDelegate.ATTR_DISCONNECT_ON_CTX_EXIT, false);
copySpecToConfig(launchSpec, wc);
wc.rename(getDefaultLaunchName(wc));

Back to the top