Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/launch
diff options
context:
space:
mode:
authorDoug Schaefer2007-04-30 15:17:10 +0000
committerDoug Schaefer2007-04-30 15:17:10 +0000
commit13fc99911bd3ed32758edadfc7c6b66a44969c12 (patch)
tree8431c5c1e0e9be8db2ca7b479b56654fbad2c94a /launch
parentac5a5a0dd52dbb7b4fdc7bc987915a4a32f8b22b (diff)
downloadorg.eclipse.cdt-13fc99911bd3ed32758edadfc7c6b66a44969c12.tar.gz
org.eclipse.cdt-13fc99911bd3ed32758edadfc7c6b66a44969c12.tar.xz
org.eclipse.cdt-13fc99911bd3ed32758edadfc7c6b66a44969c12.zip
Use the bin's project as a mapped resource too.
Diffstat (limited to 'launch')
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java
index 42a1b615aad..70a6c217a00 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java
@@ -182,7 +182,7 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut {
configType.newInstance(null, getLaunchManager().generateUniqueLaunchConfigurationNameFrom(bin.getElementName()));
wc.setAttribute(ICDTLaunchConfigurationConstants.ATTR_PROGRAM_NAME, projectName);
wc.setAttribute(ICDTLaunchConfigurationConstants.ATTR_PROJECT_NAME, bin.getCProject().getElementName());
- wc.setMappedResources(new IResource[] {bin.getResource()});
+ wc.setMappedResources(new IResource[] {bin.getResource(), bin.getResource().getProject()});
wc.setAttribute(ICDTLaunchConfigurationConstants.ATTR_WORKING_DIRECTORY, (String) null);
wc.setAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_STOP_AT_MAIN, true);
wc.setAttribute(

Back to the top