forked from qt-creator/qt-creator
Valgrind: Remove CallgrindController's use of ValgrindProcess
It's simply one-shot command execution, using (only some part of) the ValgrindProcess machinery that just happens to also to wrap a process is conceptually different from ValgrindProcess that "is" the valgrind-with-debuggee entity (and an unneeded dependency) Change-Id: I57a2c3d1cab6b15e59cb41b8e131948c170297b6 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -45,7 +45,7 @@ class ValgrindProcess : public QObject
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
ValgrindProcess(const ProjectExplorer::IDevice::ConstPtr &device, QObject *parent);
|
||||
ValgrindProcess();
|
||||
~ValgrindProcess();
|
||||
|
||||
bool isRunning() const;
|
||||
@@ -64,12 +64,12 @@ public:
|
||||
QString workingDirectory() const;
|
||||
|
||||
ProjectExplorer::IDevice::ConstPtr device() const { return m_device; }
|
||||
void setDevice(const ProjectExplorer::IDevice::ConstPtr &device);
|
||||
|
||||
qint64 pid() const;
|
||||
bool isLocal() const;
|
||||
|
||||
signals:
|
||||
void started();
|
||||
void valgrindStarted(qint64 pid);
|
||||
void finished(int, QProcess::ExitStatus);
|
||||
void error(QProcess::ProcessError);
|
||||
void processOutput(const QString &, Utils::OutputFormat format);
|
||||
@@ -87,7 +87,6 @@ private:
|
||||
|
||||
ProjectExplorer::StandardRunnable m_debuggee;
|
||||
ProjectExplorer::ApplicationLauncher m_valgrindProcess;
|
||||
qint64 m_pid = 0;
|
||||
ProjectExplorer::IDevice::ConstPtr m_device;
|
||||
|
||||
ProjectExplorer::ApplicationLauncher m_findPID;
|
||||
|
||||
Reference in New Issue
Block a user