HomePhabricator

Implement GetSharedLibraryInfoAddress

Description

Implement GetSharedLibraryInfoAddress

Summary:
This is the third patch to improve module loading in a series that started here (where I explain the motivation and solution): D62499

Add functions to read the r_debug location to know where the linked list of loaded libraries are so I can generate the xfer:libraries-svr4 packet.
I'm also using this function to implement GetSharedLibraryInfoAddress that was "not implemented" for linux.
Most of this code was inspired by the current ds2 implementation here: https://github.com/facebook/ds2/blob/master/Sources/Target/POSIX/ELFProcess.cpp.

Reviewers: clayborg, xiaobai, labath

Reviewed By: clayborg, labath

Subscribers: emaste, krytarowski, mgorny, lldb-commits

Tags: #lldb

Differential Revision: https://reviews.llvm.org/D62501

Details

Committed
aadsmJun 14 2019, 2:15 PM
Reviewer
clayborg
Differential Revision
D62501: Implement GetSharedLibraryInfoAddress
Parents
rL363457: [COFF] Strip section name suffix from mingw comdats
Branches
Unknown
Tags
Unknown