[Lldb-commits] [PATCH] D62504: Avoid calling LoadModules twice when modules change
António Afonso via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon May 27 15:42:39 PDT 2019
aadsm created this revision.
aadsm added reviewers: clayborg, xiaobai, labath.
Herald added a project: LLDB.
Herald added a subscriber: lldb-commits.
aadsm edited the summary of this revision.
aadsm added a parent revision: D62503: Add ReadCStringFromMemory for faster string reads.
This is the sixth and final patch to improve module loading in a series that started here (where I explain the motivation and solution): D62499 <https://reviews.llvm.org/D62499>
When `xfer:libraries-svr4` is available the Process class has a LoadModules function that requests this packet and then loads or unloads modules based on the current list of loaded modules by the process.
This is function is used by DYLDRendezvous to get the list of loaded modules before and after the module is loaded. However, this is really not needed since the LoadModules function already loaded or unloaded the modules accordingly. I changed this strategy to call LoadModules only once (after the process has loaded the module).
I also removed the `FromRemote` functions & friends because they were only maintaining the `m_soentries` structure that is never being used in this context. (I hope I'm not missing anything obvious here).
rG LLVM Github Monorepo
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7631 bytes
Desc: not available
More information about the lldb-commits