Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/launch
diff options
context:
space:
mode:
authorKen Ryall2006-09-20 20:59:10 +0000
committerKen Ryall2006-09-20 20:59:10 +0000
commit73c553ffe6fc8275b23cb024fb52105bffe7d995 (patch)
treeb1e1ea5ed5a54dca1fb24b8fd8e98d805a771cfe /launch
parenta1b9eea7e97ac1f72bc869e0afef4d087546f0f0 (diff)
downloadorg.eclipse.cdt-73c553ffe6fc8275b23cb024fb52105bffe7d995.tar.gz
org.eclipse.cdt-73c553ffe6fc8275b23cb024fb52105bffe7d995.tar.xz
org.eclipse.cdt-73c553ffe6fc8275b23cb024fb52105bffe7d995.zip
Handle when the default debugger is not set.
Diffstat (limited to 'launch')
-rw-r--r--launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java
index b64b14cde1a..c4cf7dd12e5 100644
--- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java
+++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CDebuggerTab.java
@@ -169,6 +169,10 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
}
if (selection.equals("")) { //$NON-NLS-1$
ICDebugConfiguration dc = CDebugCorePlugin.getDefault().getDefaultDebugConfiguration();
+ if (dc == null) {
+ CDebugCorePlugin.getDefault().saveDefaultDebugConfiguration("org.eclipse.cdt.debug.mi.core.CDebuggerNew");
+ dc = CDebugCorePlugin.getDefault().getDefaultDebugConfiguration();
+ }
if (dc != null)
selection = dc.getID();
}

Back to the top