From 938dedbac0ccd13232d994ec23c4e37a25c1249b Mon Sep 17 00:00:00 2001
From: Friedemann Kleint <Friedemann.Kleint@nokia.com>
Date: Fri, 12 Mar 2010 08:30:51 +0100
Subject: [PATCH] Debugger [CDB]: Values missing in locals view. Task-number:
 QTCREATORBUG-861

Account for internal dumpers expanding children when reading out
SymbolGroupContext.
---
 src/plugins/debugger/cdb/cdbsymbolgroupcontext_tpl.h | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/plugins/debugger/cdb/cdbsymbolgroupcontext_tpl.h b/src/plugins/debugger/cdb/cdbsymbolgroupcontext_tpl.h
index 278d6c131e4..9cc79b3eecf 100644
--- a/src/plugins/debugger/cdb/cdbsymbolgroupcontext_tpl.h
+++ b/src/plugins/debugger/cdb/cdbsymbolgroupcontext_tpl.h
@@ -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;
-- 
GitLab