summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBMemoryRegionInfo.cpp
diff options
context:
space:
mode:
authorHoward Hellyer <hhellyer@uk.ibm.com>2016-07-07 08:21:28 +0000
committerHoward Hellyer <hhellyer@uk.ibm.com>2016-07-07 08:21:28 +0000
commitad00756301c73771a058f23c77226627c8e27f9a (patch)
tree7aa4ccfac5dd428896f50b1fe81853d69ee07f2b /lldb/source/API/SBMemoryRegionInfo.cpp
parent168800c97d852bcda062200be861eb30aa334941 (diff)
downloadbcm5719-llvm-ad00756301c73771a058f23c77226627c8e27f9a.tar.gz
bcm5719-llvm-ad00756301c73771a058f23c77226627c8e27f9a.zip
Implement GetMemoryRegions() for Linux and Mac OSX core files.
Summary: This patch fills in the implementation of GetMemoryRegions() on the Linux and Mac OS core file implementations of lldb_private::Process (ProcessElfCore::GetMemoryRegions and ProcessMachCore::GetMemoryRegions.) The GetMemoryRegions API was added under: http://reviews.llvm.org/D20565 The patch re-uses the m_core_range_infos list that was recently added to implement GetMemoryRegionInfo in both ProcessElfCore and ProcessMachCore to ensure the returned regions match the regions returned by Process::GetMemoryRegionInfo(addr_t load_addr, MemoryRegionInfo &region_info). Reviewers: clayborg Subscribers: labath, lldb-commits Differential Revision: http://reviews.llvm.org/D21751 llvm-svn: 274741
Diffstat (limited to 'lldb/source/API/SBMemoryRegionInfo.cpp')
-rw-r--r--lldb/source/API/SBMemoryRegionInfo.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/API/SBMemoryRegionInfo.cpp b/lldb/source/API/SBMemoryRegionInfo.cpp
index f46b45f4e3a..53b180787af 100644
--- a/lldb/source/API/SBMemoryRegionInfo.cpp
+++ b/lldb/source/API/SBMemoryRegionInfo.cpp
@@ -106,6 +106,11 @@ SBMemoryRegionInfo::IsExecutable () {
}
bool
+SBMemoryRegionInfo::IsMapped () {
+ return m_opaque_ap->GetMapped() == MemoryRegionInfo::eYes;
+}
+
+bool
SBMemoryRegionInfo::GetDescription (SBStream &description)
{
Stream &strm = description.ref();
OpenPOWER on IntegriCloud