1
0
Fork 0
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:
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) { 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.