Debugger[CDB]: Fix handling of shadowed variables.

Fix name formatting and algorithm to find uninitialized
variables to use reverse order in case locals of the same
name occur in a scope.

Reviewed-by: hjk
Task-number: QTCREATORBUG-4475
This commit is contained in:
Friedemann Kleint
2011-04-12 11:57:57 +02:00
parent ff58d9960b
commit 28d5526459
3 changed files with 8 additions and 5 deletions

View File

@@ -397,7 +397,7 @@ QString WatchData::shadowedName(const QString &name, int seen)
{
if (seen <= 0)
return name;
return shadowedNameFormat().arg(name, seen);
return shadowedNameFormat().arg(name).arg(seen);
}
quint64 WatchData::coreAddress() const