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 errorMessage;
|
||||||
QString value;
|
QString value;
|
||||||
QString type;
|
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->setValue(value);
|
||||||
wd->setType(type);
|
wd->setType(type);
|
||||||
} else {
|
} else {
|
||||||
|
@@ -1372,6 +1372,7 @@ void WatchHandler::watchExpression(const QString &exp)
|
|||||||
else
|
else
|
||||||
insertData(data);
|
insertData(data);
|
||||||
m_manager->updateWatchData(data);
|
m_manager->updateWatchData(data);
|
||||||
|
m_manager->updateWatchersWindow();
|
||||||
saveWatchers();
|
saveWatchers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user