[Lldb-commits] [PATCH] D92187: [lldb] [POSIX-DYLD] Add libraries from initial rendezvous brkpt hit

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun Dec 13 14:43:53 PST 2020


mgorny added a comment.

In D92187#2450976 <https://reviews.llvm.org/D92187#2450976>, @labath wrote:

> In D92187#2450526 <https://reviews.llvm.org/D92187#2450526>, @mgorny wrote:
>
>> Another fix: we should only unload duplicate ld.so if it's actually a duplicate, i.e. the path differs. Otherwise, we've ended up unloading the only copy.
>
> Would comparing the module shared_pointers work? I think that's exactly what we want here. I think it's possible for `LoadModuleAtAddress` to return the same module, even with paths which don't match exactly. But if it does that, then we will still end up unloading the original interpreter module...

How do you suggest we get the shared pointer for comparison? Store in class instance, or search for it somehow?


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

https://reviews.llvm.org/D92187



More information about the lldb-commits mailing list