forked from qt-creator/qt-creator
Debugger: Lower kit restrictions for debugging
In some cases it can be useful to be able to debug although not having a complete functional kit present. (e.g. debugging a core file having an ABI for which you have a debugger but having no respective compiler) Change-Id: Ia2567c8e2dd6783e612802cc08f7767399aaf33f Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -107,7 +107,11 @@ DebuggerKitChooser::DebuggerKitChooser(Mode mode, QWidget *parent)
|
|||||||
{
|
{
|
||||||
setKitMatcher([this](const Kit *k) {
|
setKitMatcher([this](const Kit *k) {
|
||||||
// Match valid debuggers and restrict local debugging to compatible toolchains.
|
// Match valid debuggers and restrict local debugging to compatible toolchains.
|
||||||
if (DebuggerKitInformation::configurationErrors(k))
|
auto errors = DebuggerKitInformation::configurationErrors(k);
|
||||||
|
// we do not care for mismatched ABI if we want *any* debugging
|
||||||
|
if (m_mode == AnyDebugging && errors == DebuggerKitInformation::DebuggerDoesNotMatch)
|
||||||
|
errors = DebuggerKitInformation::NoConfigurationError;
|
||||||
|
if (errors)
|
||||||
return false;
|
return false;
|
||||||
if (m_mode == LocalDebugging)
|
if (m_mode == LocalDebugging)
|
||||||
return ToolChainKitInformation::targetAbi(k).os() == m_hostAbi.os();
|
return ToolChainKitInformation::targetAbi(k).os() == m_hostAbi.os();
|
||||||
|
|||||||
Reference in New Issue
Block a user