forked from qt-creator/qt-creator
Valgrind: Merge MemCheck{,WithGdb}ToolRunner
Change-Id: Iaf0707cf5c06ef29c33da835133948256869c76a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -39,7 +39,8 @@ class MemcheckToolRunner : public ValgrindToolRunner
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MemcheckToolRunner(ProjectExplorer::RunControl *runControl);
|
||||
explicit MemcheckToolRunner(ProjectExplorer::RunControl *runControl,
|
||||
bool withGdb = false);
|
||||
|
||||
void start() override;
|
||||
void stop() override;
|
||||
@@ -51,27 +52,17 @@ signals:
|
||||
void parserError(const Valgrind::XmlProtocol::Error &error);
|
||||
void suppressionCount(const QString &name, qint64 count);
|
||||
|
||||
protected:
|
||||
private:
|
||||
QString progressTitle() const override;
|
||||
QStringList toolArguments() const override;
|
||||
ValgrindRunner *runner() override;
|
||||
|
||||
protected:
|
||||
XmlProtocol::ThreadedParser m_parser;
|
||||
Memcheck::MemcheckRunner m_runner;
|
||||
};
|
||||
|
||||
class MemcheckWithGdbToolRunner : public MemcheckToolRunner
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit MemcheckWithGdbToolRunner(ProjectExplorer::RunControl *runControl);
|
||||
|
||||
protected:
|
||||
QStringList toolArguments() const override;
|
||||
void startDebugger();
|
||||
void appendLog(const QByteArray &data);
|
||||
|
||||
XmlProtocol::ThreadedParser m_parser;
|
||||
Memcheck::MemcheckRunner m_runner;
|
||||
const bool m_withGdb;
|
||||
};
|
||||
|
||||
} // namespace Internal
|
||||
|
||||
Reference in New Issue
Block a user