debugger: work on "watchers" for use with new dumpers

This commit is contained in:
hjk
2009-12-04 13:36:14 +01:00
parent accc2c6926
commit ecb0df0cb5
5 changed files with 44 additions and 21 deletions

View File

@@ -1268,7 +1268,12 @@ void WatchHandler::watchExpression(const QString &exp)
if (exp.isEmpty() || exp == watcherEditPlaceHolder())
data.setAllUnneeded();
data.iname = watcherName(exp);
insertData(data);
IDebuggerEngine *engine = m_manager->currentEngine();
if (engine && engine->isSynchroneous())
m_manager->updateWatchData(data);
else
insertData(data);
m_manager->updateWatchData(data);
saveWatchers();
}