forked from qt-creator/qt-creator
Debugger: Fix detection of lldb via xcrun
Change-Id: If91efbd1d7a3e01440a3ed5ee0172975c2b0eff1 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -231,7 +231,7 @@ void DebuggerItemManager::autoDetectGdbOrLldbDebuggers()
|
|||||||
= lldbInfo.runBlocking(QLatin1String("xcrun"), QStringList() << QLatin1String("--find")
|
= lldbInfo.runBlocking(QLatin1String("xcrun"), QStringList() << QLatin1String("--find")
|
||||||
<< QLatin1String("lldb"));
|
<< QLatin1String("lldb"));
|
||||||
if (response.result == Utils::SynchronousProcessResponse::Finished) {
|
if (response.result == Utils::SynchronousProcessResponse::Finished) {
|
||||||
QString lPath = response.allOutput();
|
QString lPath = response.allOutput().trimmed();
|
||||||
if (!lPath.isEmpty()) {
|
if (!lPath.isEmpty()) {
|
||||||
const QFileInfo fi(lPath);
|
const QFileInfo fi(lPath);
|
||||||
if (fi.exists() && fi.isExecutable() && !fi.isDir())
|
if (fi.exists() && fi.isExecutable() && !fi.isDir())
|
||||||
|
Reference in New Issue
Block a user