Bug 477728 - Exit code not displayed in console for new Run config
authorMarc Khouzam <marc.khouzam@ericsson.com>
Thu, 17 Sep 2015 14:39:44 +0000 (10:39 -0400)
committerMarc Khouzam <marc.khouzam@ericsson.com>
Thu, 17 Sep 2015 18:28:36 +0000 (14:28 -0400)
Change-Id: Id1ecdffb5d3a99908f7ac4ee096f2b7f7e3d6440
(cherry picked from commit 366dcbb39a7d18756641058427bbec4f3d828b06)

launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/LocalCDILaunchDelegate.java

index 10605ef..9eff261 100644 (file)
@@ -407,6 +407,13 @@ public class LocalCDILaunchDelegate extends AbstractCLaunchDelegate {
                        if (ICDTLaunchConfigurationConstants.DEBUGGER_MODE_CORE.equals(config.getAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_START_MODE, ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN)))
                                return true; 
                }
+               if (mode.equals(ILaunchManager.RUN_MODE)) {
+                       // We plan on splitting the Run delegate from the Debug one.
+                       // For now, to keep backwards-compatibility, we need to keep the same delegate (to keep its id)
+                       // However, we can just call the new delegate class
+                       new LocalRunLaunchDelegate().preLaunchCheck(config, mode, monitor);
+               }
+
                return super.preLaunchCheck(config, mode, monitor);
        }