forked from qt-creator/qt-creator
Debugger: FilePath'ify
Change-Id: If3202b1108e44df2293f8a4bd5690c141f6ba1c7 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -624,14 +624,10 @@ void DebuggerItemModel::autoDetectGdbOrLldbDebuggers(const FilePaths &searchPath
|
||||
proc.setCommand({"xcrun", {"--find", "lldb"}});
|
||||
using namespace std::chrono_literals;
|
||||
proc.runBlocking(2s);
|
||||
// FIXME:
|
||||
if (proc.result() == ProcessResult::FinishedWithSuccess) {
|
||||
QString lPath = proc.allOutput().trimmed();
|
||||
if (!lPath.isEmpty()) {
|
||||
const QFileInfo fi(lPath);
|
||||
if (fi.exists() && fi.isExecutable() && !fi.isDir())
|
||||
suspects.append(FilePath::fromString(fi.absoluteFilePath()));
|
||||
}
|
||||
const FilePath lPath = FilePath::fromUserInput(proc.allOutput().trimmed());
|
||||
if (lPath.isExecutableFile())
|
||||
suspects.append(lPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user