Commit 9af735e2 authored by hjk's avatar hjk

Debugger: Use QtcProcess instead of QProcess for LLDB

More similar to what GDB does.

Change-Id: I2c5e952261119f04a515f8b8e79a66c397bff6df
Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
parent 9890ddfc
......@@ -253,11 +253,12 @@ void LldbEngine::startLldb()
this, &LldbEngine::handleResponse, Qt::QueuedConnection);
showMessage(_("STARTING LLDB: ") + m_lldbCmd);
m_lldbProc.setEnvironment(runParameters().environment.toStringList());
m_lldbProc.setEnvironment(runParameters().environment);
if (!runParameters().workingDirectory.isEmpty())
m_lldbProc.setWorkingDirectory(runParameters().workingDirectory);
m_lldbProc.start(m_lldbCmd);
m_lldbProc.setCommand(m_lldbCmd, QString());
m_lldbProc.start();
if (!m_lldbProc.waitForStarted()) {
const QString msg = tr("Unable to start LLDB \"%1\": %2")
......
......@@ -39,6 +39,7 @@
#include <debugger/debuggerprotocol.h>
#include <utils/consoleprocess.h>
#include <utils/qtcprocess.h>
#include <QPointer>
#include <QProcess>
......@@ -183,7 +184,7 @@ private:
QByteArray m_inbuffer;
QString m_scriptFileName;
QProcess m_lldbProc;
Utils::QtcProcess m_lldbProc;
QString m_lldbCmd;
// FIXME: Make generic.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment