forked from qt-creator/qt-creator
Debugger: Do not force cdb when no toolchain is configured
... in the kit settings widget. Fixes: QTCREATORBUG-28458 Change-Id: I75907bfeeff56173fb9d92045345ba0ca15584b4 Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
@@ -249,8 +249,18 @@ void DebuggerKitAspect::fix(Kit *k)
|
||||
setup(k);
|
||||
return;
|
||||
}
|
||||
const Abi tcAbi = ToolChainKitAspect::targetAbi(k);
|
||||
if (item->matchTarget(tcAbi) != DebuggerItem::DoesNotMatch)
|
||||
|
||||
Abi kitAbi;
|
||||
if (ToolChainKitAspect::toolChains(k).isEmpty()) {
|
||||
if (DeviceTypeKitAspect::deviceTypeId(k)
|
||||
!= ProjectExplorer::Constants::DESKTOP_DEVICE_TYPE) {
|
||||
return;
|
||||
}
|
||||
kitAbi = Abi(Abi::UnknownArchitecture, Abi::hostAbi().os());
|
||||
} else {
|
||||
kitAbi = ToolChainKitAspect::targetAbi(k);
|
||||
}
|
||||
if (item->matchTarget(kitAbi) != DebuggerItem::DoesNotMatch)
|
||||
return;
|
||||
k->setValue(DebuggerKitAspect::id(), QVariant());
|
||||
setup(k);
|
||||
|
Reference in New Issue
Block a user