1
0
Fork 0
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:
David Inglis 2003-07-28 13:36:24 +00:00
parent c6b470a797
commit 0a8f96e1d2

View file

@ -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.