From 0a8f96e1d239d7ac2472f1342894aae1be8c3522 Mon Sep 17 00:00:00 2001 From: David Inglis Date: Mon, 28 Jul 2003 13:36:24 +0000 Subject: [PATCH] fixed supports cpu test so that it finds debugger that support a cpu which == native but don't say they support native --- .../eclipse/cdt/debug/internal/core/DebugConfiguration.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugConfiguration.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugConfiguration.java index a420c8f565b..6a128f5c517 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugConfiguration.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/DebugConfiguration.java @@ -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.