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

Bug 202339

For a local launch, only gdb/mi debugger will be available, while for a remote launch, only gdbserver debugger will be available.
This is a temporary solution.
This commit is contained in:
Marc Khouzam 2008-03-31 01:32:37 +00:00
parent e820790108
commit a74f59c186

View file

@ -212,15 +212,20 @@ public class CDebuggerTab extends AbstractCDebuggerTab {
}
String defaultSelection = selection;
for (int i = 0; i < debugConfigs.length; i++) {
if (mode.equals(IGDBLaunchConfigurationConstants.DEBUGGER_MODE_REMOTE) || debugConfigs[i].supportsMode(mode)) {
if ((mode.equals(IGDBLaunchConfigurationConstants.DEBUGGER_MODE_REMOTE)
&& debugConfigs[i].getName().equals("gdbserver Debugger")) || //$NON-NLS-1$
(mode.equals(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_RUN)
&& debugConfigs[i].getName().equals("gdb/mi") && debugConfigs[i].supportsMode(mode)) || //$NON-NLS-1$
(mode.equals(ICDTLaunchConfigurationConstants.DEBUGGER_MODE_ATTACH)
&& debugConfigs[i].getName().equals("gdb Debugger") && debugConfigs[i].supportsMode(mode))) { //$NON-NLS-1$
String debuggerPlatform = debugConfigs[i].getPlatform();
if (validatePlatform(config, debugConfigs[i])) {
list.add(debugConfigs[i]);
// select first exact matching debugger for platform or
// requested selection
if ( (defaultSelection.equals("") && debuggerPlatform.equalsIgnoreCase(configPlatform))) { //$NON-NLS-1$
defaultSelection = debugConfigs[i].getID();
}
// // select first exact matching debugger for platform or
// // requested selection
// if ( (defaultSelection.equals("") && debuggerPlatform.equalsIgnoreCase(configPlatform))) { //$NON-NLS-1$
// defaultSelection = debugConfigs[i].getID();
// }
}
}
}