forked from qt-creator/qt-creator
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:
committed by
Tim Jenssen
parent
7ab2ed5730
commit
32b484e26e
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user