Debugger: Add auto-detection for arm64 version of cdb.exe

This would allow native debugging on Windows Arm64.

Change-Id: I77dd479606335bab9f7c7ae27889f056d4ea57f4
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Cristian Adam
2022-05-23 18:13:59 +02:00
parent e8d62c1f2c
commit 21ed15fcc9

View File

@@ -669,12 +669,12 @@ void DebuggerItemManagerPrivate::autoDetectCdbDebuggers()
for (const QFileInfo &kitFolderFi : kitFolders) {
const QString path = kitFolderFi.absoluteFilePath();
const QFileInfo cdb32(path + "/Debuggers/x86/cdb.exe");
if (cdb32.isExecutable())
cdbs.append(FilePath::fromString(cdb32.absoluteFilePath()));
const QFileInfo cdb64(path + "/Debuggers/x64/cdb.exe");
if (cdb64.isExecutable())
cdbs.append(FilePath::fromString(cdb64.absoluteFilePath()));
const QStringList abis = {"x86", "x64", "arm64"};
for (const QString &abi: abis) {
const QFileInfo cdbBinary(path + "/Debuggers/" + abi + "/cdb.exe");
if (cdbBinary.isExecutable())
cdbs.append(FilePath::fromString(cdbBinary.absoluteFilePath()));
}
}
for (const FilePath &cdb : qAsConst(cdbs)) {