Merge remote-tracking branch 'origin/2.6'

This commit is contained in:
Eike Ziller
2012-09-03 09:08:49 +02:00
27 changed files with 249 additions and 142 deletions

View File

@@ -1144,7 +1144,12 @@ public slots:
exp = fixCppExpression(exp);
if (exp.isEmpty())
return;
currentEngine()->watchHandler()->watchExpression(exp);
const QString name = exp;
// Prefer to watch an existing local variable by its expression (address) if it can be found.
WatchHandler *watchHandler = currentEngine()->watchHandler();
if (const WatchData *localVariable = watchHandler->findCppLocalVariable(exp))
exp = QLatin1String(localVariable->exp);
watchHandler->watchExpression(exp, name);
}
void handleExecExit()