mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-23 14:42:11 +02:00
Bug 137970: No default debugger in C++ managed project.
This commit is contained in:
parent
ae939f1fa5
commit
6eed0e6c62
2 changed files with 11 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2006-05-25 Mikhail Khodjaiants
|
||||||
|
Bug 137970: No default debugger in C++ managed project.
|
||||||
|
* MIPlugin.java
|
||||||
|
|
||||||
2006-05-25 Mikhail Khodjaiants
|
2006-05-25 Mikhail Khodjaiants
|
||||||
Bug 109733: Request to make certain methods as public (MISession and MIInferior).
|
Bug 109733: Request to make certain methods as public (MISession and MIInferior).
|
||||||
* MIInferior.java
|
* MIInferior.java
|
||||||
|
|
|
@ -19,7 +19,10 @@ import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.MissingResourceException;
|
import java.util.MissingResourceException;
|
||||||
import java.util.ResourceBundle;
|
import java.util.ResourceBundle;
|
||||||
|
import org.eclipse.cdt.debug.core.CDebugCorePlugin;
|
||||||
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
|
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
|
||||||
|
import org.eclipse.cdt.debug.core.ICDebugConfiguration;
|
||||||
|
import org.eclipse.cdt.debug.core.ICDebugConstants;
|
||||||
import org.eclipse.cdt.debug.mi.core.cdi.Session;
|
import org.eclipse.cdt.debug.mi.core.cdi.Session;
|
||||||
import org.eclipse.cdt.debug.mi.core.command.CLITargetAttach;
|
import org.eclipse.cdt.debug.mi.core.command.CLITargetAttach;
|
||||||
import org.eclipse.cdt.debug.mi.core.command.CommandFactory;
|
import org.eclipse.cdt.debug.mi.core.command.CommandFactory;
|
||||||
|
@ -532,6 +535,10 @@ public class MIPlugin extends Plugin {
|
||||||
*/
|
*/
|
||||||
public void start(BundleContext context) throws Exception {
|
public void start(BundleContext context) throws Exception {
|
||||||
super.start(context);
|
super.start(context);
|
||||||
|
ICDebugConfiguration dc = CDebugCorePlugin.getDefault().getDefaultDefaultDebugConfiguration();
|
||||||
|
if (dc == null) {
|
||||||
|
CDebugCorePlugin.getDefault().getPluginPreferences().setDefault(ICDebugConstants.PREF_DEFAULT_DEBUGGER_TYPE, "org.eclipse.cdt.debug.mi.core.CDebuggerNew"); //$NON-NLS-1$
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
|
|
Loading…
Add table
Reference in a new issue