Add support to read aux vector values

Summary:
This is the second patch to improve module loading in a series that started here (where I explain the motivation and solution): https://reviews.llvm.org/D62499

I need to read the aux vector to know where the r_debug map with the loaded libraries are.
The AuxVector class was made generic so it could be reused between the POSIX-DYLD plugin and NativeProcess*. The class itself ended up in the ProcessUtility plugin.

Reviewers: clayborg, xiaobai, labath, JDevlieghere

Reviewed By: clayborg, labath, JDevlieghere

Subscribers: emaste, JDevlieghere, mgorny, lldb-commits

Tags: #lldb

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

llvm-svn: 363098
This commit is contained in:
Antonio Afonso
2019-06-11 20:16:13 +00:00
parent 1dc3c9aa8f
commit 943faef1fa
18 changed files with 149 additions and 206 deletions

View File

@@ -2708,7 +2708,7 @@ DynamicLoader *Process::GetDynamicLoader() {
return m_dyld_up.get();
}
const lldb::DataBufferSP Process::GetAuxvData() { return DataBufferSP(); }
DataExtractor Process::GetAuxvData() { return DataExtractor(); }
JITLoaderList &Process::GetJITLoaders() {
if (!m_jit_loaders_up) {