forked from qt-creator/qt-creator
Debugger[CDB]: Fix watchers.
Task-number: QTCREATORBUG-1139
This commit is contained in:
@@ -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 {
|
||||
|
@@ -1372,6 +1372,7 @@ void WatchHandler::watchExpression(const QString &exp)
|
||||
else
|
||||
insertData(data);
|
||||
m_manager->updateWatchData(data);
|
||||
m_manager->updateWatchersWindow();
|
||||
saveWatchers();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user