Debugger: Fix CDB autodetection for 32bit builds on 64bit systems.

This commit is contained in:
Friedemann Kleint
2011-01-21 12:50:13 +01:00
parent c11d657dea
commit 3ff03ea941

View File

@@ -242,11 +242,15 @@ bool CdbOptions::autoDetectExecutable(QString *outPath, bool *is64bitIn /* = 0
return true; return true;
} }
#else #else
*outPath = checkCdbExecutable(programDir + QLatin1String(" (x64)"), QString(), checkedDirectories); // A 32bit process on 64 bit sees "ProgramFiles\Debg.. (x64)"
if (!outPath->isEmpty()) { if (programDir.endsWith(QLatin1String(" (x86)"))) {
if (is64bitIn) *outPath = checkCdbExecutable(programDir.left(programDir.size() - 6),
*is64bitIn = true; QLatin1String(" (x64)"), checkedDirectories);
return true; if (!outPath->isEmpty()) {
if (is64bitIn)
*is64bitIn = true;
return true;
}
} }
#endif #endif
return false; return false;