1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 06:32:10 +02:00

Handle when the default debugger is not set.

This commit is contained in:
Ken Ryall 2006-09-20 20:59:10 +00:00
parent a1b9eea7e9
commit 73c553ffe6

View file

@ -169,6 +169,10 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
} }
if (selection.equals("")) { //$NON-NLS-1$ if (selection.equals("")) { //$NON-NLS-1$
ICDebugConfiguration dc = CDebugCorePlugin.getDefault().getDefaultDebugConfiguration(); 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) if (dc != null)
selection = dc.getID(); selection = dc.getID();
} }