forked from qt-creator/qt-creator
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user