debugger: more linear state handling in core adapter

This commit is contained in:
hjk
2010-07-15 13:23:44 +02:00
parent 9f8b5af3b2
commit d6fc1193ed
6 changed files with 96 additions and 85 deletions

View File

@@ -256,7 +256,6 @@ void SnapshotHandler::removeAll()
void SnapshotHandler::appendSnapshot(DebuggerRunControl *rc)
{
//return; // FIXME
m_snapshots.append(rc);
m_currentIndex = size() - 1;
reset();
@@ -264,9 +263,10 @@ void SnapshotHandler::appendSnapshot(DebuggerRunControl *rc)
void SnapshotHandler::removeSnapshot(DebuggerRunControl *rc)
{
// Could be that the run controls died before it was appended.
int index = m_snapshots.indexOf(rc);
QTC_ASSERT(index != -1, return);
removeSnapshot(index);
if (index != -1)
removeSnapshot(index);
}
void SnapshotHandler::removeSnapshot(int index)