mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-22 14:12:10 +02:00
Fix to be more tolerant of changes in the debugger ids that can result
from shared launch configurations. PR 144758
This commit is contained in:
parent
b2b00e4be1
commit
af47333e04
1 changed files with 12 additions and 3 deletions
|
@ -137,10 +137,19 @@ public class StandardGDBDebuggerPage extends AbstractCDebuggerPage implements Ob
|
|||
index = i;
|
||||
}
|
||||
fCommandFactoryCombo.setItems( descLabels );
|
||||
if ( index < 0 )
|
||||
if ( index < 0 ) {
|
||||
index = 0;
|
||||
}
|
||||
|
||||
//It may be the case that we can't match up any identifier with any installed debuggers associated
|
||||
//with this debuggerID (ie fCommandFactoryDescriptors.length == 0) for example when importing a
|
||||
//launch from different environments that use CDT debugging. In this case we try and soldier on
|
||||
//using the defaults as much as is realistic.
|
||||
String[] miVersions = new String[0];
|
||||
if(index < fCommandFactoryDescriptors.length) {
|
||||
fCommandFactoryCombo.select( index );
|
||||
String[] miVersions = fCommandFactoryDescriptors[index].getMIVersions();
|
||||
miVersions = fCommandFactoryDescriptors[index].getMIVersions();
|
||||
}
|
||||
fProtocolCombo.setItems( miVersions );
|
||||
if ( miVersions.length == 0 ) {
|
||||
miVersions = new String[] { DEFAULT_MI_VERSION };
|
||||
|
|
Loading…
Add table
Reference in a new issue