From eab8054535c4726d9390fe331bb9a6cae5f623f9 Mon Sep 17 00:00:00 2001
From: hjk <hjk121@nokiamail.com>
Date: Mon, 28 Jul 2014 16:10:03 +0200
Subject: [PATCH] Debugger: Weaken abi check for attaching to local process

Given that we don't detect all aspects of the tool chain under all
circumstances, an '==' is too strong.

Change-Id: I1c07d58d824e765f9d89fb7dd3007ca716997ee0
Reviewed-by: Tobias Hunger <tobias.hunger@digia.com>
---
 src/plugins/debugger/debuggerdialogs.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/debugger/debuggerdialogs.cpp b/src/plugins/debugger/debuggerdialogs.cpp
index e367e2891cd..f919cb7a858 100644
--- a/src/plugins/debugger/debuggerdialogs.cpp
+++ b/src/plugins/debugger/debuggerdialogs.cpp
@@ -117,7 +117,7 @@ bool DebuggerKitChooser::kitMatches(const ProjectExplorer::Kit *k) const
         return false;
     if (m_mode == LocalDebugging) {
         const ProjectExplorer::ToolChain *tc = ToolChainKitInformation::toolChain(k);
-        return tc && tc->targetAbi().os() == m_hostAbi.os();
+        return tc && tc->targetAbi().isCompatibleWith(m_hostAbi);
     }
     return true;
 }
-- 
GitLab