Debugger: FilePath'ify

Change-Id: If3202b1108e44df2293f8a4bd5690c141f6ba1c7
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Marcus Tillmanns
2024-08-29 12:19:43 +02:00
parent 8f240e84a0
commit 9c083b6eb6

View File

@@ -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);
}
}