mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-16 05:25:21 +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:
parent
226fd77f89
commit
ff14320b36
2 changed files with 8 additions and 9 deletions
|
@ -15,7 +15,6 @@ package org.eclipse.dd.gdb.internal.ui.launching;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.text.Collator;
|
import java.text.Collator;
|
||||||
import java.text.MessageFormat;
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
import java.util.Comparator;
|
import java.util.Comparator;
|
||||||
|
@ -337,7 +336,7 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
|
||||||
if (!validateDebuggerConfig(config)) {
|
if (!validateDebuggerConfig(config)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
ICDebugConfiguration debugConfig = getDebugConfig();
|
// ICDebugConfiguration debugConfig = getDebugConfig();
|
||||||
// if (fAttachMode && !debugConfig.supportsMode(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_ATTACH)) {
|
// if (fAttachMode && !debugConfig.supportsMode(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_ATTACH)) {
|
||||||
// setErrorMessage(MessageFormat.format(LaunchMessages.getString("CDebuggerTab.Mode_not_supported"), //$NON-NLS-1$
|
// setErrorMessage(MessageFormat.format(LaunchMessages.getString("CDebuggerTab.Mode_not_supported"), //$NON-NLS-1$
|
||||||
// (Object[]) new String[]{ICDTLaunchConfigurationConstants.DEBUGGER_MODE_ATTACH}));
|
// (Object[]) new String[]{ICDTLaunchConfigurationConstants.DEBUGGER_MODE_ATTACH}));
|
||||||
|
@ -348,11 +347,11 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
|
||||||
// (Object[]) new String[]{IGDBLaunchConfigurationConstants.DEBUGGER_MODE_REMOTE}));
|
// (Object[]) new String[]{IGDBLaunchConfigurationConstants.DEBUGGER_MODE_REMOTE}));
|
||||||
// return false;
|
// return false;
|
||||||
// }
|
// }
|
||||||
if (!fAttachMode && !fRemoteMode && !debugConfig.supportsMode(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN)) {
|
// if (!fAttachMode && !fRemoteMode && !debugConfig.supportsMode(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN)) {
|
||||||
setErrorMessage(MessageFormat.format(LaunchMessages.getString("CDebuggerTab.Mode_not_supported"), //$NON-NLS-1$
|
// setErrorMessage(MessageFormat.format(LaunchMessages.getString("CDebuggerTab.Mode_not_supported"), //$NON-NLS-1$
|
||||||
(Object[]) new String[]{ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN}));
|
// (Object[]) new String[]{ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN}));
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
if (fStopInMain != null && fStopInMainSymbol != null) {
|
if (fStopInMain != null && fStopInMainSymbol != null) {
|
||||||
// The "Stop on startup at" field must not be empty
|
// The "Stop on startup at" field must not be empty
|
||||||
String mainSymbol = fStopInMainSymbol.getText().trim();
|
String mainSymbol = fStopInMainSymbol.getText().trim();
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
class="org.eclipse.dd.gdb.internal.provisional.launching.GDBDebugger"
|
class="org.eclipse.dd.gdb.internal.provisional.launching.GDBDebugger"
|
||||||
cpu="native"
|
cpu="native"
|
||||||
id="org.eclipse.dd.gdb.GdbDebugger"
|
id="org.eclipse.dd.gdb.GdbDebugger"
|
||||||
modes="run,core,attach"
|
modes="dsf"
|
||||||
name="gdb/mi"
|
name="gdb/mi"
|
||||||
platform="*">
|
platform="*">
|
||||||
</debugger>
|
</debugger>
|
||||||
|
@ -31,7 +31,7 @@
|
||||||
class="org.eclipse.dd.gdb.internal.provisional.launching.GDBServerDebugger"
|
class="org.eclipse.dd.gdb.internal.provisional.launching.GDBServerDebugger"
|
||||||
cpu="*"
|
cpu="*"
|
||||||
id="org.eclipse.dd.gdb.GdbServerDebugger"
|
id="org.eclipse.dd.gdb.GdbServerDebugger"
|
||||||
modes="run"
|
modes="dsf"
|
||||||
name="gdbserver Debugger"
|
name="gdbserver Debugger"
|
||||||
platform="*">
|
platform="*">
|
||||||
</debugger>
|
</debugger>
|
||||||
|
|
Loading…
Add table
Reference in a new issue