debugger: let debugger attach to currently running process

Change-Id: I4aab1aa84a3dc9211d84d59be76005a8e841239e
(cherry picked from commit 55e399b524721e3561b6c7faae8aef84bf064565)
Reviewed-on: http://codereview.qt.nokia.com/251
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
hjk
2011-05-31 09:48:00 +02:00
committed by hjk
parent eb1336daac
commit b9580e3ccf
10 changed files with 100 additions and 7 deletions

View File

@@ -150,6 +150,12 @@ IRunConfigurationFactory *findRunConfigurationFactory(RunConfigurationFactoryMat
} // namespace
/*!
\class ProjectExplorer::ProcessHandle
\brief Helper class to describe a process.
*/
/*!
\class ProjectExplorer::RunConfiguration
\brief Base class for a run configuration. A run configuration specifies how a
@@ -351,6 +357,7 @@ Utils::OutputFormatter *RunConfiguration::createOutputFormatter() const
return new Utils::OutputFormatter();
}
/*!
\class ProjectExplorer::IRunConfigurationFactory
@@ -492,6 +499,16 @@ QString RunControl::displayName() const
return m_displayName;
}
ProcessHandle RunControl::applicationProcessHandle() const
{
return m_applicationProcessHandle;
}
void RunControl::setApplicationProcessHandle(const ProcessHandle &handle)
{
m_applicationProcessHandle = handle;
}
bool RunControl::promptToStop(bool *optionalPrompt) const
{
QTC_ASSERT(isRunning(), return true;)