[Lldb-commits] [PATCH] D13778: [SBValue] Add a method GetNumChildren(uint32_t max)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 20 04:36:46 PDT 2015


labath added a comment.

> When such an error occurs, it is unlikely to be an lldb bug, or data-formatter bug. One can come up with a data structure for which reading a child element would require complete debug info, but reading the # of child elements need not require complete debug info (there could be an instance variable storing the size). Another could be that a child is improperly initialized but the data structure itself is properly initialized.


Ok, that makes sense. No objections from my side.


================
Comment at: source/API/SBValue.cpp:1273
@@ -1272,3 +1272,3 @@
 {
     uint32_t num_children = 0;
 
----------------
You can replace this by `return GetNumChildren(UINT32_MAX);`


http://reviews.llvm.org/D13778





More information about the lldb-commits mailing list