debugger: restore session breakpoints if RunControl finishes

This commit is contained in:
hjk
2010-06-22 15:14:44 +02:00
parent b01a622fa3
commit c5c0dc76a0
6 changed files with 29 additions and 19 deletions

View File

@@ -209,6 +209,15 @@ DebuggerRunControl::DebuggerRunControl(RunConfiguration *runConfiguration)
m_enabledEngines = AllEngineTypes;
}
DebuggerRunControl::~DebuggerRunControl()
{
disconnect();
DebuggerEngine *engine = m_engine;
m_engine = 0;
engine->disconnect();
delete engine;
}
static DebuggerEngineType engineForToolChain(int toolChainType)
{
switch (toolChainType) {
@@ -372,11 +381,6 @@ void DebuggerRunControl::createEngine(const DebuggerStartParameters &sp)
}
}
DebuggerRunControl::~DebuggerRunControl()
{
delete m_engine;
}
QString DebuggerRunControl::displayName() const
{
QTC_ASSERT(m_engine, return QString());
@@ -481,6 +485,7 @@ void DebuggerRunControl::handleStarted()
void DebuggerRunControl::handleFinished()
{
engine()->handleFinished();
plugin()->runControlFinished(this);
}