Introduce ToolChainKitInformation::targetAbi(Kit *)

Use that in the debugger. That simplifies the logic a bit.

Change-Id: Ia72607283373ee0f89a91f347db0ef2c87cf9fb3
Reviewed-by: Tim Jenssen <tim.jenssen@theqtcompany.com>
This commit is contained in:
Tobias Hunger
2016-07-13 10:40:05 +02:00
committed by Tim Jenssen
parent 7ab2ed5730
commit 32b484e26e
6 changed files with 62 additions and 57 deletions

View File

@@ -109,10 +109,8 @@ DebuggerKitChooser::DebuggerKitChooser(Mode mode, QWidget *parent)
// Match valid debuggers and restrict local debugging to compatible toolchains.
if (!DebuggerKitInformation::isValidDebugger(k))
return false;
if (m_mode == LocalDebugging) {
const ToolChain *tc = ToolChainKitInformation::toolChain(k, ToolChain::Language::Cxx);
return tc && tc->targetAbi().os() == m_hostAbi.os();
}
if (m_mode == LocalDebugging)
return ToolChainKitInformation::targetAbi(k).os() == m_hostAbi.os();
return true;
});
}