Debugger [CDB]: Values missing in locals view.

Task-number: QTCREATORBUG-861

Account for internal dumpers expanding children when reading out
SymbolGroupContext.
This commit is contained in:
Friedemann Kleint
2010-03-12 08:30:51 +01:00
parent c8a61cc8f2
commit 938dedbac0

View File

@@ -50,8 +50,9 @@ bool CdbSymbolGroupContext::getDumpChildSymbols(const QString &prefix,
return false;
// Skip over expanded children. Internal dumping might expand
// children, so, re-evaluate size in end condition.
const int count = size();
for (int s = start; s < count; ++s) {
// Note the that the internal dumpers might expand children,
// so the size might change.
for (int s = start; s < size(); ++s) {
const DEBUG_SYMBOL_PARAMETERS &p = symbolParameterAt(s);
if (p.ParentSymbol == parentId && isSymbolDisplayable(p)) {
WatchData wd;