diff options
author | Antonio Afonso <antonio.afonso@gmail.com> | 2019-06-11 20:16:13 +0000 |
---|---|---|
committer | Antonio Afonso <antonio.afonso@gmail.com> | 2019-06-11 20:16:13 +0000 |
commit | 943faef1fafe2793cfaf9bf7741fe4215d3b0fe7 (patch) | |
tree | 3964c21d1573a12769317960aaeb236d544ad4bd /lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | |
parent | 1dc3c9aa8f7a68343a0ec1447c96e66b348a2608 (diff) | |
download | bcm5719-llvm-943faef1fafe2793cfaf9bf7741fe4215d3b0fe7.tar.gz bcm5719-llvm-943faef1fafe2793cfaf9bf7741fe4215d3b0fe7.zip |
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
Diffstat (limited to 'lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp')
-rw-r--r-- | lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp index c4df4e716d0..194e79085a0 100644 --- a/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp +++ b/lldb/source/Plugins/Process/gdb-remote/ProcessGDBRemote.cpp @@ -4046,7 +4046,7 @@ Status ProcessGDBRemote::SendEventData(const char *data) { return error; } -const DataBufferSP ProcessGDBRemote::GetAuxvData() { +DataExtractor ProcessGDBRemote::GetAuxvData() { DataBufferSP buf; if (m_gdb_comm.GetQXferAuxvReadSupported()) { std::string response_string; @@ -4056,7 +4056,7 @@ const DataBufferSP ProcessGDBRemote::GetAuxvData() { buf = std::make_shared<DataBufferHeap>(response_string.c_str(), response_string.length()); } - return buf; + return DataExtractor(buf, GetByteOrder(), GetAddressByteSize()); } StructuredData::ObjectSP |