forked from qt-creator/qt-creator
Valgrind: Support MemcheckTool re-running
Disable re-running for CallgrindTool only for now. Change-Id: I8b2392dda9b707641cd4938fe9d2e62f53cfd69f Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -30,6 +30,7 @@ CallgrindToolRunner::CallgrindToolRunner(RunControl *runControl)
|
|||||||
: ValgrindToolRunner(runControl)
|
: ValgrindToolRunner(runControl)
|
||||||
{
|
{
|
||||||
setId("CallgrindToolRunner");
|
setId("CallgrindToolRunner");
|
||||||
|
runControl->setSupportsReRunning(false);
|
||||||
|
|
||||||
connect(&m_runner, &ValgrindProcess::valgrindStarted, this, [this](qint64 pid) {
|
connect(&m_runner, &ValgrindProcess::valgrindStarted, this, [this](qint64 pid) {
|
||||||
m_pid = pid;
|
m_pid = pid;
|
||||||
|
@@ -945,17 +945,21 @@ void MemcheckTool::setupRunner(MemcheckToolRunner *runTool)
|
|||||||
this, &MemcheckTool::internalParserError);
|
this, &MemcheckTool::internalParserError);
|
||||||
connect(runControl, &RunControl::stopped,
|
connect(runControl, &RunControl::stopped,
|
||||||
this, &MemcheckTool::engineFinished);
|
this, &MemcheckTool::engineFinished);
|
||||||
|
connect(runControl, &RunControl::aboutToStart, this, [this] {
|
||||||
|
m_toolBusy = true;
|
||||||
|
updateRunActions();
|
||||||
|
setBusyCursor(true);
|
||||||
|
clearErrorView();
|
||||||
|
m_loadExternalLogFile->setDisabled(true);
|
||||||
|
Debugger::showPermanentStatusMessage(Tr::tr("Starting Memory Analyzer..."));
|
||||||
|
});
|
||||||
|
connect(runControl, &RunControl::started, this, [] {
|
||||||
|
Debugger::showPermanentStatusMessage(Tr::tr("Memory Analyzer running..."));
|
||||||
|
});
|
||||||
|
|
||||||
m_stopAction->disconnect();
|
m_stopAction->disconnect();
|
||||||
connect(m_stopAction, &QAction::triggered, runControl, &RunControl::initiateStop);
|
connect(m_stopAction, &QAction::triggered, runControl, &RunControl::initiateStop);
|
||||||
|
|
||||||
m_toolBusy = true;
|
|
||||||
updateRunActions();
|
|
||||||
|
|
||||||
setBusyCursor(true);
|
|
||||||
clearErrorView();
|
|
||||||
m_loadExternalLogFile->setDisabled(true);
|
|
||||||
|
|
||||||
const FilePath dir = runControl->project()->projectDirectory();
|
const FilePath dir = runControl->project()->projectDirectory();
|
||||||
const QString name = runControl->commandLine().executable().fileName();
|
const QString name = runControl->commandLine().executable().fileName();
|
||||||
|
|
||||||
|
@@ -29,7 +29,6 @@ ValgrindToolRunner::ValgrindToolRunner(RunControl *runControl)
|
|||||||
: RunWorker(runControl)
|
: RunWorker(runControl)
|
||||||
{
|
{
|
||||||
runControl->setIcon(ProjectExplorer::Icons::ANALYZER_START_SMALL_TOOLBAR);
|
runControl->setIcon(ProjectExplorer::Icons::ANALYZER_START_SMALL_TOOLBAR);
|
||||||
runControl->setSupportsReRunning(false);
|
|
||||||
|
|
||||||
m_settings.fromMap(runControl->settingsData(ANALYZER_VALGRIND_SETTINGS));
|
m_settings.fromMap(runControl->settingsData(ANALYZER_VALGRIND_SETTINGS));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user