[Lldb-commits] [PATCH] D13678: [libstdc++ data-formatters] Remove size limits and loop detector.
Jim Ingham via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 12 15:27:13 PDT 2015
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.
> On Oct 12, 2015, at 3:20 PM, Siva Chandra via lldb-commits <lldb-commits at 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 :)
> lldb-commits mailing list
> lldb-commits at lists.llvm.org
More information about the lldb-commits