From 1eafa1540e63d2853b5ff6cd5c4e4d740e976a51 Mon Sep 17 00:00:00 2001 From: Christian Stenger Date: Wed, 9 Nov 2016 14:03:07 +0100 Subject: [PATCH] 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 --- src/plugins/debugger/debuggerdialogs.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/plugins/debugger/debuggerdialogs.cpp b/src/plugins/debugger/debuggerdialogs.cpp index d950a26b3f8..b3317ca75db 100644 --- a/src/plugins/debugger/debuggerdialogs.cpp +++ b/src/plugins/debugger/debuggerdialogs.cpp @@ -107,7 +107,11 @@ DebuggerKitChooser::DebuggerKitChooser(Mode mode, QWidget *parent) { setKitMatcher([this](const Kit *k) { // 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; if (m_mode == LocalDebugging) return ToolChainKitInformation::targetAbi(k).os() == m_hostAbi.os();