Merge remote-tracking branch 'origin/2.6'

This commit is contained in:
Eike Ziller
2012-10-29 15:13:06 +01:00
21 changed files with 109 additions and 67 deletions

View File

@@ -1586,6 +1586,18 @@ void WatchHandler::watchExpression(const QString &exp, const QString &name)
updateWatchersWindow();
}
// Watch something obtained from the editor.
// Prefer to watch an existing local variable by its expression
// (address) if it can be found. Default to watchExpression().
void WatchHandler::watchVariable(const QString &exp)
{
if (const WatchData *localVariable = findCppLocalVariable(exp)) {
watchExpression(QLatin1String(localVariable->exp), exp);
} else {
watchExpression(exp);
}
}
static void swapEndian(char *d, int nchar)
{
QTC_ASSERT(nchar % 4 == 0, return);