Debugger[CDB]: Fix watchers.

Task-number: QTCREATORBUG-1139
This commit is contained in:
Friedemann Kleint
2010-04-15 11:57:14 +02:00
parent f47135c919
commit 02a9a46216
2 changed files with 6 additions and 1 deletions

View File

@@ -617,7 +617,11 @@ void CdbDebugEngine::evaluateWatcher(WatchData *wd)
QString errorMessage;
QString value;
QString type;
if (m_d->evaluateExpression(wd->exp, &value, &type, &errorMessage)) {
QString exp = wd->exp;
// Remove locals watch prefix.
if (exp.startsWith(QLatin1String("local.")))
exp.remove(0, 6);
if (m_d->evaluateExpression(exp, &value, &type, &errorMessage)) {
wd->setValue(value);
wd->setType(type);
} else {

View File

@@ -1372,6 +1372,7 @@ void WatchHandler::watchExpression(const QString &exp)
else
insertData(data);
m_manager->updateWatchData(data);
m_manager->updateWatchersWindow();
saveWatchers();
}