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

Bug 235862

Label DSF-defined debugger extensions as 'dsf' to make sure they are not picked up by the CDT launch configurations.
This commit is contained in:
Marc Khouzam 2008-06-06 14:12:55 +00:00
parent 226fd77f89
commit ff14320b36
2 changed files with 8 additions and 9 deletions

View file

@ -15,7 +15,6 @@ package org.eclipse.dd.gdb.internal.ui.launching;
import java.io.IOException;
import java.text.Collator;
import java.text.MessageFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
@ -337,7 +336,7 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
if (!validateDebuggerConfig(config)) {
return false;
}
ICDebugConfiguration debugConfig = getDebugConfig();
// ICDebugConfiguration debugConfig = getDebugConfig();
// if (fAttachMode && !debugConfig.supportsMode(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_ATTACH)) {
// setErrorMessage(MessageFormat.format(LaunchMessages.getString("CDebuggerTab.Mode_not_supported"), //$NON-NLS-1$
// (Object[]) new String[]{ICDTLaunchConfigurationConstants.DEBUGGER_MODE_ATTACH}));
@ -348,11 +347,11 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
// (Object[]) new String[]{IGDBLaunchConfigurationConstants.DEBUGGER_MODE_REMOTE}));
// return false;
// }
if (!fAttachMode && !fRemoteMode && !debugConfig.supportsMode(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN)) {
setErrorMessage(MessageFormat.format(LaunchMessages.getString("CDebuggerTab.Mode_not_supported"), //$NON-NLS-1$
(Object[]) new String[]{ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN}));
return false;
}
// if (!fAttachMode && !fRemoteMode && !debugConfig.supportsMode(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN)) {
// setErrorMessage(MessageFormat.format(LaunchMessages.getString("CDebuggerTab.Mode_not_supported"), //$NON-NLS-1$
// (Object[]) new String[]{ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN}));
// return false;
// }
if (fStopInMain != null && fStopInMainSymbol != null) {
// The "Stop on startup at" field must not be empty
String mainSymbol = fStopInMainSymbol.getText().trim();

View file

@ -23,7 +23,7 @@
class="org.eclipse.dd.gdb.internal.provisional.launching.GDBDebugger"
cpu="native"
id="org.eclipse.dd.gdb.GdbDebugger"
modes="run,core,attach"
modes="dsf"
name="gdb/mi"
platform="*">
</debugger>
@ -31,7 +31,7 @@
class="org.eclipse.dd.gdb.internal.provisional.launching.GDBServerDebugger"
cpu="*"
id="org.eclipse.dd.gdb.GdbServerDebugger"
modes="run"
modes="dsf"
name="gdbserver Debugger"
platform="*">
</debugger>