1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 164994: For post-mortem debugging new launch configuration is not initialized properly. Applied patch from Alex Chapiro, QNX.

This commit is contained in:
Mikhail Khodjaiants 2007-03-01 12:28:14 +00:00
parent 8c10e5d244
commit 8d597138b3

View file

@ -20,6 +20,8 @@ import org.eclipse.cdt.core.model.ICElement;
import org.eclipse.cdt.debug.core.CDebugCorePlugin;
import org.eclipse.cdt.debug.core.ICDTLaunchConfigurationConstants;
import org.eclipse.cdt.debug.core.ICDebugConfiguration;
import org.eclipse.cdt.debug.ui.CDebugUIPlugin;
import org.eclipse.cdt.debug.ui.ICDebuggerPage;
import org.eclipse.cdt.launch.internal.ui.AbstractCDebuggerTab;
import org.eclipse.cdt.launch.internal.ui.LaunchMessages;
import org.eclipse.cdt.launch.internal.ui.LaunchUIPlugin;
@ -58,6 +60,17 @@ public class CoreFileDebuggerTab extends AbstractCDebuggerTab {
public void setDefaults(ILaunchConfigurationWorkingCopy config) {
config.setAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_START_MODE,
ICDTLaunchConfigurationConstants.DEBUGGER_MODE_CORE);
ICDebugConfiguration dc = CDebugCorePlugin.getDefault().getDefaultDebugConfiguration();
if (dc != null) {
String id = dc.getID();
config.setAttribute(ICDTLaunchConfigurationConstants.ATTR_DEBUGGER_ID, id);
try {
ICDebuggerPage tab = CDebugUIPlugin.getDefault().getDebuggerPage(id);
tab.setDefaults(config);
} catch (CoreException e) {
LaunchUIPlugin.errorDialog(LaunchMessages.getString("AbstractCDebuggerTab.ErrorLoadingDebuggerPage"), e.getStatus()); //$NON-NLS-1$
}
}
}
/*