summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/debugger/cdb/cdbsymbolgroupcontext_tpl.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/debugger/cdb/cdbsymbolgroupcontext_tpl.h b/src/plugins/debugger/cdb/cdbsymbolgroupcontext_tpl.h
index 278d6c131e..9cc79b3eec 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;