I don't know about the std::list implementation in specific, but in the 
debugger you have to be aware of the possibility that you are looking at an 
entity that is in the middle of being modified.  Note, it may not be obvious to 
the user that that is being done since it may be happening on another thread.  
Anyway, depending on how that is done the entity might be in a weird or weirder 
state.  So it is good never to allow yourself to run off into the weeds if you 
can easily avoid it.

Jim

> On Oct 12, 2015, at 3:20 PM, Siva Chandra via lldb-commits 
> <lldb-commits@lists.llvm.org> wrote:
> 
> sivachandra added a comment.
> 
> How can there be loops in an std::list?
> 
> 1. If the implementation is flawed.
> 2. If someone messes with its implementation.
> 
> Should we protect for such cases at all? If #1, don't use that library in the 
> first place. If #2, that is an unsupported use case :)
> 
> 
> http://reviews.llvm.org/D13678
> 
> 
> 
> _______________________________________________
> lldb-commits mailing list
> lldb-commits@lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

Reply via email to