diff options
author | hjk <qtc-committer@nokia.com> | 2010-07-21 17:06:22 +0200 |
---|---|---|
committer | hjk <qtc-committer@nokia.com> | 2010-07-22 10:59:22 +0200 |
commit | 96561a38c719c528dd60723d170d0ae453223f6a (patch) | |
tree | 0a53056ee7f35b29661ebb26a7fb27e4c860ced8 /src/plugins/projectexplorer | |
parent | 990dba7551aa1a4e61c13acd750ee589c8b9aaf6 (diff) | |
download | qt-creator-96561a38c719c528dd60723d170d0ae453223f6a.tar.gz |
debugger: enable debugging of multiple projects at the same time
Diffstat (limited to 'src/plugins/projectexplorer')
-rw-r--r-- | src/plugins/projectexplorer/projectexplorer.cpp | 12 | ||||
-rw-r--r-- | src/plugins/projectexplorer/target.h | 8 |
2 files changed, 6 insertions, 14 deletions
diff --git a/src/plugins/projectexplorer/projectexplorer.cpp b/src/plugins/projectexplorer/projectexplorer.cpp index aa6aa70e2b..3f51d4b95f 100644 --- a/src/plugins/projectexplorer/projectexplorer.cpp +++ b/src/plugins/projectexplorer/projectexplorer.cpp @@ -186,7 +186,6 @@ struct ProjectExplorerPluginPrivate { QString m_lastOpenDirectory; RunConfiguration *m_delayedRunConfiguration; // TODO this is not right - RunControl *m_debuggingRunControl; QString m_runMode; QString m_projectFilterString; Internal::MiniProjectTargetSelector * m_targetSelector; @@ -200,7 +199,6 @@ ProjectExplorerPluginPrivate::ProjectExplorerPluginPrivate() : m_currentProject(0), m_currentNode(0), m_delayedRunConfiguration(0), - m_debuggingRunControl(0), m_projectsMode(0) { } @@ -1319,9 +1317,6 @@ void ProjectExplorerPlugin::startRunControl(RunControl *runControl, const QStrin connect(runControl, SIGNAL(finished()), this, SLOT(runControlFinished())); - if (runMode == ProjectExplorer::Constants::DEBUGMODE) - d->m_debuggingRunControl = runControl; - runControl->start(); updateRunActions(); } @@ -1788,7 +1783,7 @@ void ProjectExplorerPlugin::runProjectImpl(Project *pro, QString mode) void ProjectExplorerPlugin::debugProject() { Project *pro = startupProject(); - if (!pro || d->m_debuggingRunControl ) + if (!pro) return; runProjectImpl(pro, ProjectExplorer::Constants::DEBUGMODE); @@ -1821,9 +1816,6 @@ bool ProjectExplorerPlugin::showBuildConfigDialog() void ProjectExplorerPlugin::runControlFinished() { - if (sender() == d->m_debuggingRunControl) - d->m_debuggingRunControl = 0; - updateRunActions(); } @@ -1934,7 +1926,7 @@ void ProjectExplorerPlugin::updateRunActions() bool canRun = findRunControlFactory(activeRC, ProjectExplorer::Constants::RUNMODE) && activeRC->isEnabled(); - const bool canDebug = !d->m_debuggingRunControl && findRunControlFactory(activeRC, ProjectExplorer::Constants::DEBUGMODE) + const bool canDebug = findRunControlFactory(activeRC, ProjectExplorer::Constants::DEBUGMODE) && activeRC->isEnabled(); const bool building = d->m_buildManager->isBuilding(); diff --git a/src/plugins/projectexplorer/target.h b/src/plugins/projectexplorer/target.h index f68e311766..c6c9e722de 100644 --- a/src/plugins/projectexplorer/target.h +++ b/src/plugins/projectexplorer/target.h @@ -65,11 +65,11 @@ public: // Running QList<RunConfiguration *> runConfigurations() const; - void addRunConfiguration(RunConfiguration* runConfiguration); - void removeRunConfiguration(RunConfiguration* runConfiguration); + void addRunConfiguration(RunConfiguration *runConfiguration); + void removeRunConfiguration(RunConfiguration *runConfiguration); - RunConfiguration* activeRunConfiguration() const; - void setActiveRunConfiguration(RunConfiguration* runConfiguration); + RunConfiguration *activeRunConfiguration() const; + void setActiveRunConfiguration(RunConfiguration *runConfiguration); // Returns whether this target is actually available at he time // of the call. A target may become unavailable e.g. when a Qt version |