From 13fc99911bd3ed32758edadfc7c6b66a44969c12 Mon Sep 17 00:00:00 2001 From: Doug Schaefer Date: Mon, 30 Apr 2007 15:17:10 +0000 Subject: [PATCH] Use the bin's project as a mapped resource too. --- .../eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(