Analyzer: Move non-static parts of IAnalyzerTool::start*Tool

... to user code.

Change-Id: Ibe278134e39cfb3f90acedc976fab5e9dc019046
Reviewed-by: Christian Stenger <christian.stenger@theqtcompany.com>
This commit is contained in:
hjk
2015-02-18 12:25:39 +01:00
parent 05f8a2c813
commit ca04d009f2
5 changed files with 56 additions and 36 deletions

View File

@@ -599,10 +599,16 @@ void MemcheckTool::setBusyCursor(bool busy)
void MemcheckTool::startTool(StartMode mode)
{
if (mode == StartLocal)
startLocalTool(DebugMode, MemcheckRunMode);
if (mode == StartRemote)
startRemoteTool(MemcheckRunMode);
if (mode == StartLocal && checkForLocalStart(DebugMode)) {
Project *pro = SessionManager::startupProject();
ProjectExplorerPlugin::instance()->runProject(pro, MemcheckRunMode);
}
AnalyzerStartParameters sp;
if (mode == StartRemote && checkForRemoteStart(&sp)) {
AnalyzerRunControl *rc = createRunControl(sp, 0);
ProjectExplorerPlugin::startRunControl(rc, MemcheckRunMode);
}
}
MemcheckWithGdbTool::MemcheckWithGdbTool(QObject *parent) :
@@ -613,10 +619,16 @@ MemcheckWithGdbTool::MemcheckWithGdbTool(QObject *parent) :
void MemcheckWithGdbTool::startTool(Analyzer::StartMode mode)
{
if (mode == StartLocal)
startLocalTool(DebugMode, MemcheckWithGdbRunMode);
if (mode == StartRemote)
startRemoteTool(MemcheckWithGdbRunMode);
if (mode == StartLocal && checkForLocalStart(DebugMode)) {
Project *pro = SessionManager::startupProject();
ProjectExplorerPlugin::instance()->runProject(pro, MemcheckWithGdbRunMode);
}
AnalyzerStartParameters sp;
if (mode == StartRemote && checkForRemoteStart(&sp)) {
AnalyzerRunControl *rc = createRunControl(sp, 0);
ProjectExplorerPlugin::startRunControl(rc, MemcheckWithGdbRunMode);
}
}
MemcheckRunControl *MemcheckWithGdbTool::createMemcheckRunControl(const AnalyzerStartParameters &sp,