make breakpoint and watchers view more robust when switching sessions

This commit is contained in:
hjk
2010-11-25 16:32:07 +01:00
parent 28b3fa1152
commit 15ee289ee2
5 changed files with 32 additions and 32 deletions

View File

@@ -977,7 +977,7 @@ public slots:
for (int i = 0, n = m_snapshotHandler->size(); i != n; ++i) {
if (DebuggerRunControl *runControl = m_snapshotHandler->at(i)) {
DebuggerEngine *engine = runControl->engine();
engine->watchHandler()->synchronizeWatchers();
engine->watchHandler()->updateWatchers();
}
}
}
@@ -3000,11 +3000,11 @@ void DebuggerPluginPrivate::sessionLoaded()
{
m_breakHandler->loadSessionData();
dummyEngine()->watchHandler()->loadSessionData();
synchronizeWatchers();
}
void DebuggerPluginPrivate::aboutToUnloadSession()
{
m_breakHandler->removeSessionData();
// Stop debugging the active project when switching sessions.
// Note that at startup, session switches may occur, which interfere
// with command-line debugging startup.