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



_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to