diff options
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
-rw-r--r-- | lldb/source/Core/Debugger.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 08cbb1c4755..0c62a4f8047 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -1200,6 +1200,8 @@ Debugger::FormatPrompt if (index_higher < 0) index_higher = vobj->GetNumChildren() - 1; + uint32_t max_num_children = target->GetUpdatePoint().GetTargetSP()->GetMaximumNumberOfChildrenToDisplay(); + for (;index_lower<=index_higher;index_lower++) { ValueObject* item = ExpandIndexedExpression(target, @@ -1223,6 +1225,12 @@ Debugger::FormatPrompt else var_success &= FormatPrompt(special_directions, sc, exe_ctx, addr, s, NULL, item); + if (--max_num_children == 0) + { + s.PutCString(", ..."); + break; + } + if (index_lower < index_higher) s.PutChar(','); } |