Debugger: Use arm64 cdb only on Arm64 host

Otherwise on x86/x64 there will be a machine type mismatch warning
displayed.

Amends 21ed15fcc9

Change-Id: I7faee1a6f9eaa7abdabcd92a26de763b27a0e085
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Cristian Adam
2022-05-30 10:49:07 +02:00
parent faa9ddbcfd
commit ea47190ed6

View File

@@ -669,7 +669,9 @@ void DebuggerItemManagerPrivate::autoDetectCdbDebuggers()
for (const QFileInfo &kitFolderFi : kitFolders) {
const QString path = kitFolderFi.absoluteFilePath();
const QStringList abis = {"x86", "x64", "arm64"};
QStringList abis = {"x86", "x64"};
if (HostOsInfo::hostArchitecture() == HostOsInfo::HostArchitectureArm)
abis << "arm64";
for (const QString &abi: abis) {
const QFileInfo cdbBinary(path + "/Debuggers/" + abi + "/cdb.exe");
if (cdbBinary.isExecutable())