mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-01 06:05:24 +02:00
fixed supports cpu test so that it finds debugger that support a cpu which
== native but don't say they support native
This commit is contained in:
parent
c6b470a797
commit
0a8f96e1d2
1 changed files with 3 additions and 2 deletions
|
@ -66,10 +66,11 @@ public class DebugConfiguration implements ICDebugConfiguration {
|
||||||
|
|
||||||
public boolean supportsCPU(String cpu) {
|
public boolean supportsCPU(String cpu) {
|
||||||
String nativeCPU = BootLoader.getOSArch();
|
String nativeCPU = BootLoader.getOSArch();
|
||||||
|
boolean ret = false;
|
||||||
if ( nativeCPU.startsWith(cpu) ) {
|
if ( nativeCPU.startsWith(cpu) ) {
|
||||||
cpu = NATIVE;
|
ret = getCPUs().contains(NATIVE);
|
||||||
}
|
}
|
||||||
return getCPUs().contains(cpu);
|
return ret || getCPUs().contains(cpu);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Returns the set of modes specified in the configuration data.
|
* Returns the set of modes specified in the configuration data.
|
||||||
|
|
Loading…
Add table
Reference in a new issue