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)
|
||||
{
|
||||
setId("CallgrindToolRunner");
|
||||
runControl->setSupportsReRunning(false);
|
||||
|
||||
connect(&m_runner, &ValgrindProcess::valgrindStarted, this, [this](qint64 pid) {
|
||||
m_pid = pid;
|
||||
|
@@ -945,16 +945,20 @@ void MemcheckTool::setupRunner(MemcheckToolRunner *runTool)
|
||||
this, &MemcheckTool::internalParserError);
|
||||
connect(runControl, &RunControl::stopped,
|
||||
this, &MemcheckTool::engineFinished);
|
||||
|
||||
m_stopAction->disconnect();
|
||||
connect(m_stopAction, &QAction::triggered, runControl, &RunControl::initiateStop);
|
||||
|
||||
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();
|
||||
connect(m_stopAction, &QAction::triggered, runControl, &RunControl::initiateStop);
|
||||
|
||||
const FilePath dir = runControl->project()->projectDirectory();
|
||||
const QString name = runControl->commandLine().executable().fileName();
|
||||
|
@@ -29,7 +29,6 @@ ValgrindToolRunner::ValgrindToolRunner(RunControl *runControl)
|
||||
: RunWorker(runControl)
|
||||
{
|
||||
runControl->setIcon(ProjectExplorer::Icons::ANALYZER_START_SMALL_TOOLBAR);
|
||||
runControl->setSupportsReRunning(false);
|
||||
|
||||
m_settings.fromMap(runControl->settingsData(ANALYZER_VALGRIND_SETTINGS));
|
||||
|
||||
|
Reference in New Issue
Block a user