forked from qt-creator/qt-creator
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:
@@ -669,12 +669,12 @@ void DebuggerItemManagerPrivate::autoDetectCdbDebuggers()
|
|||||||
|
|
||||||
for (const QFileInfo &kitFolderFi : kitFolders) {
|
for (const QFileInfo &kitFolderFi : kitFolders) {
|
||||||
const QString path = kitFolderFi.absoluteFilePath();
|
const QString path = kitFolderFi.absoluteFilePath();
|
||||||
const QFileInfo cdb32(path + "/Debuggers/x86/cdb.exe");
|
const QStringList abis = {"x86", "x64", "arm64"};
|
||||||
if (cdb32.isExecutable())
|
for (const QString &abi: abis) {
|
||||||
cdbs.append(FilePath::fromString(cdb32.absoluteFilePath()));
|
const QFileInfo cdbBinary(path + "/Debuggers/" + abi + "/cdb.exe");
|
||||||
const QFileInfo cdb64(path + "/Debuggers/x64/cdb.exe");
|
if (cdbBinary.isExecutable())
|
||||||
if (cdb64.isExecutable())
|
cdbs.append(FilePath::fromString(cdbBinary.absoluteFilePath()));
|
||||||
cdbs.append(FilePath::fromString(cdb64.absoluteFilePath()));
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const FilePath &cdb : qAsConst(cdbs)) {
|
for (const FilePath &cdb : qAsConst(cdbs)) {
|
||||||
|
Reference in New Issue
Block a user