Valgrind: Support console applications

Task-number: QTCREATORBUG-7311
Change-Id: I973136076118fd8868c6cb461ad31e107c73566e
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
This commit is contained in:
Orgad Shaneh
2014-05-06 00:08:12 +03:00
committed by Orgad Shaneh
parent 3089c8b1df
commit 60cd217981
13 changed files with 75 additions and 41 deletions

View File

@@ -31,7 +31,8 @@
#ifndef VALGRINDPROCESS_H
#define VALGRINDPROCESS_H
#include <utils/qtcprocess.h>
#include <projectexplorer/applicationlauncher.h>
#include <ssh/sshremoteprocess.h>
#include <ssh/sshconnection.h>
#include <utils/osspecificaspects.h>
@@ -79,6 +80,7 @@ public:
void setWorkingDirectory(const QString &path);
QString workingDirectory() const;
void setEnvironment(const Utils::Environment &environment);
void setLocalRunMode(ProjectExplorer::ApplicationLauncher::Mode localRunMode);
qint64 pid() const;
QSsh::SshConnection *connection() const;
@@ -92,19 +94,21 @@ signals:
void localHostAddressRetrieved(const QHostAddress &localHostAddress);
private slots:
void handleReadyReadStandardError();
void handleReadyReadStandardOutput();
void handleRemoteStderr();
void handleRemoteStdout();
void handleError(QSsh::SshError);
void closed(int);
void connected();
void processStarted();
void localProcessStarted();
void remoteProcessStarted();
void findPIDOutputReceived();
private:
QString argumentString(Utils::OsType osType) const;
Utils::QtcProcess m_localProcess;
ProjectExplorer::ApplicationLauncher m_localProcess;
qint64 m_pid;
Remote m_remote;
@@ -113,6 +117,7 @@ private:
QString m_debuggeeExecutable;
QString m_debuggeeArguments;
bool m_isLocal;
ProjectExplorer::ApplicationLauncher::Mode m_localRunMode;
};