Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Schwarz2012-11-22 05:11:12 -0500
committerTobias Schwarz2012-11-22 05:11:32 -0500
commit499eca4c116a1814c627575da66542670bbe7308 (patch)
tree85494e1e4eb0ea6aed570a7828ebf89d42ade56e /target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core
parentf2de62a27c6056b824cf5f73671e44a311c38617 (diff)
downloadorg.eclipse.tcf-499eca4c116a1814c627575da66542670bbe7308.tar.gz
org.eclipse.tcf-499eca4c116a1814c627575da66542670bbe7308.tar.xz
org.eclipse.tcf-499eca4c116a1814c627575da66542670bbe7308.zip
[Target Explorer] use cdt default source lookup for initialisation of
remote debug 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/META-INF/MANIFEST.MF3
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/src/org/eclipse/tcf/te/tcf/launch/core/lm/delegates/AttachLaunchManagerDelegate.java7
2 files changed, 9 insertions, 1 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/META-INF/MANIFEST.MF b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/META-INF/MANIFEST.MF
index c1c711f54..7e3f6a2fd 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/META-INF/MANIFEST.MF
+++ b/target_explorer/plugins/org.eclipse.tcf.te.tcf.launch.core/META-INF/MANIFEST.MF
@@ -20,7 +20,8 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="3.8.0",
org.eclipse.tcf.te.tcf.core;bundle-version="1.1.0",
org.eclipse.tcf.te.tcf.filesystem.core;bundle-version="1.1.0",
org.eclipse.tcf.te.tcf.locator;bundle-version="1.1.0",
- org.eclipse.tcf.te.tcf.processes.core;bundle-version="1.1.0"
+ org.eclipse.tcf.te.tcf.processes.core;bundle-version="1.1.0",
+ org.eclipse.tcf.te.core.cdt;bundle-version="1.1.0"
Bundle-RequiredExecutionEnvironment: JavaSE-1.6
Bundle-ActivationPolicy: lazy
Bundle-Localization: plugin
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 72043a891..446e3c8ca 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
@@ -17,6 +17,7 @@ import java.util.List;
import org.eclipse.debug.core.ILaunchConfiguration;
import org.eclipse.debug.core.ILaunchConfigurationWorkingCopy;
import org.eclipse.tcf.internal.debug.launch.TCFLaunchDelegate;
+import org.eclipse.tcf.te.core.cdt.CdtUtils;
import org.eclipse.tcf.te.launch.core.lm.delegates.DefaultLaunchManagerDelegate;
import org.eclipse.tcf.te.launch.core.lm.interfaces.ILaunchContextLaunchAttributes;
import org.eclipse.tcf.te.launch.core.lm.interfaces.ILaunchSpecification;
@@ -66,6 +67,12 @@ public class AttachLaunchManagerDelegate extends DefaultLaunchManagerDelegate {
wc.setAttribute(IAttachLaunchAttributes.ATTR_ATTACH_SERVICES, (List<?>)null);
wc.setAttribute(TCFLaunchDelegate.ATTR_DISCONNECT_ON_CTX_EXIT, false);
+ try {
+ wc.setAttribute(ILaunchConfiguration.ATTR_SOURCE_LOCATOR_MEMENTO, CdtUtils.getDefaultSourceLookupDirector().getMemento());
+ }
+ catch (Exception e) {
+
+ }
copySpecToConfig(launchSpec, wc);
wc.rename(getDefaultLaunchName(wc));

Back to the top