Debugger: Add our lldb to the system search paths

This way the user doesn't have to manually register lldb.exe

Change-Id: Id0a19de0962d8ba47a66a8d1909dfe2eb5ca0a6f
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
Cristian Adam
2023-11-16 12:47:57 +01:00
parent 116798e544
commit 1a37da15c7
6 changed files with 23 additions and 3 deletions

View File

@@ -635,9 +635,14 @@ void DebuggerItemModel::autoDetectGdbOrLldbDebuggers(const FilePaths &searchPath
}
FilePaths paths = searchPaths;
if (!searchPaths.front().needsDevice())
if (!searchPaths.front().needsDevice()) {
paths.append(searchGdbPathsFromRegistry());
const FilePath lldb = Core::ICore::lldbExecutable(CLANG_BINDIR);
if (lldb.exists())
suspects.append(lldb);
}
paths = Utils::filteredUnique(paths);
const auto addSuspect = [&suspects](const FilePath &entry) {