[Lldb-commits] [PATCH] D158583: Fix shared library loading when users define duplicate _r_debug structure.

David Spickett via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 30 01:27:29 PDT 2023


DavidSpickett added a comment.

The added context helps document what was already there so that's a nice improvement.

Something I'm not clear on mechanically. The original r_debug has eAdd set. Then the second r_debug is loaded, which also has eAdd set. What is the state of r_map at that point? I wonder if it could be somehow different between the 2 copies, with each having a subset of the list.

Also, why do we not have to wait for eConsistent on the second r_debug? Is it that we do in fact wait for that, but we load the library list from the first r_debug, then when the second one gets eConsistent, we load the rest from that.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158583/new/

https://reviews.llvm.org/D158583



More information about the lldb-commits mailing list