forked from qt-creator/qt-creator
Fix valgrind with remote Linux hosts.
This reverts commit f1ccad12dc and adds the necessary code to make both
the local and the remote case work.
Task-number: QTCREATORBUG-16153
Change-Id: I233ec9d7b31ca6e076515dd03ae7400758ee0c34
Reviewed-by: hjk <hjk@theqtcompany.com>
This commit is contained in:
@@ -147,6 +147,8 @@ bool ValgrindRunner::start()
|
||||
this, &ValgrindRunner::processFinished);
|
||||
QObject::connect(d->process, &ValgrindProcess::error,
|
||||
this, &ValgrindRunner::processError);
|
||||
QObject::connect(d->process, &ValgrindProcess::localHostAddressRetrieved,
|
||||
this, &ValgrindRunner::localHostAddressRetrieved);
|
||||
|
||||
d->process->run(d->debuggee.runMode);
|
||||
return true;
|
||||
@@ -178,6 +180,11 @@ void ValgrindRunner::processFinished(int ret, QProcess::ExitStatus status)
|
||||
emit processErrorReceived(errorString(), d->process->processError());
|
||||
}
|
||||
|
||||
void ValgrindRunner::localHostAddressRetrieved(const QHostAddress &localHostAddress)
|
||||
{
|
||||
Q_UNUSED(localHostAddress);
|
||||
}
|
||||
|
||||
QString ValgrindRunner::errorString() const
|
||||
{
|
||||
if (d->process)
|
||||
|
||||
Reference in New Issue
Block a user