forked from qt-creator/qt-creator
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user