Skip to main content
summaryrefslogtreecommitdiffstats
path: root/launch
diff options
context:
space:
mode:
authorAlain Magloire2003-12-16 20:58:46 -0500
committerAlain Magloire2003-12-16 20:58:46 -0500
commitef34e010899f725db3ea18541203ce7a1d7b61c0 (patch)
tree9b18d0c1cbfea7fc30673ab8984b15b6618974a8 /launch
parent6f2d021b520f2c22d875a08b0a6a60e65bcec8e3 (diff)
downloadorg.eclipse.cdt-ef34e010899f725db3ea18541203ce7a1d7b61c0.tar.gz
org.eclipse.cdt-ef34e010899f725db3ea18541203ce7a1d7b61c0.tar.xz
org.eclipse.cdt-ef34e010899f725db3ea18541203ce7a1d7b61c0.zip
Choose a debugger base on the Eclipse platform.
Diffstat (limited to 'launch')
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/internal/CApplicationLaunchShortcut.java4
1 files changed, 3 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 30b272f9a3..07e7926fa3 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
@@ -15,6 +15,7 @@ import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
import org.eclipse.cdt.launch.AbstractCLaunchDelegate;
import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin;
import org.eclipse.cdt.ui.CElementLabelProvider;
+import org.eclipse.core.boot.BootLoader;
import org.eclipse.core.resources.IResource;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
@@ -111,9 +112,10 @@ public class CApplicationLaunchShortcut implements ILaunchShortcut {
ICDebugConfiguration debugConfig = null;
ICDebugConfiguration[] debugConfigs = CDebugCorePlugin.getDefault().getDebugConfigurations();
List debugList = new ArrayList(debugConfigs.length);
+ String os = BootLoader.getOS();
for (int i = 0; i < debugConfigs.length; i++) {
String platform = debugConfigs[i].getPlatform();
- if (platform == null || platform.equals("native")) {
+ if (platform == null || platform.equals("native") || platform.equals(os)) {
debugList.add(debugConfigs[i]);
}
}

Back to the top