mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-30 21:55:31 +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) {
|
||||
String nativeCPU = BootLoader.getOSArch();
|
||||
boolean ret = false;
|
||||
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.
|
||||
|
|
Loading…
Add table
Reference in a new issue