Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-10-19 07:54:58 +0000
committerUwe Stieber2012-10-19 07:54:58 +0000
commit0a50e94606f709ddbd68078cbbd0f6d192123d16 (patch)
tree4f56c81ced41eb5a85140c64243bbf97e29efac0
parentacd47895b3b5da7bf4377baee3fd07356bc3b6d5 (diff)
downloadorg.eclipse.tcf-0a50e94606f709ddbd68078cbbd0f6d192123d16.tar.gz
org.eclipse.tcf-0a50e94606f709ddbd68078cbbd0f6d192123d16.tar.xz
org.eclipse.tcf-0a50e94606f709ddbd68078cbbd0f6d192123d16.zip
Target Explorer: Fix debug service does not attach if a matching but terminated launch is still available
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java
index 70ba6b96f..faae61e9c 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.ui/src/org/eclipse/tcf/te/tcf/launch/ui/internal/services/DebugService.java
@@ -87,7 +87,7 @@ public class DebugService extends AbstractService implements IDebugService {
ILaunch[] launches = DebugPlugin.getDefault().getLaunchManager().getLaunches();
for (ILaunch launch : launches) {
- if (launch.getLaunchConfiguration().getType().getIdentifier().equals(ILaunchTypes.ATTACH)) {
+ if (launch.getLaunchConfiguration().getType().getIdentifier().equals(ILaunchTypes.ATTACH) && !launch.isTerminated()) {
IModelNode[] contexts = LaunchContextsPersistenceDelegate.getLaunchContexts(launch.getLaunchConfiguration());
if (contexts != null && contexts.length == 1 && contexts[0].equals(context)) {
skip = true;

Back to the top