
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 ®ion_info). Reviewers: clayborg Subscribers: labath, lldb-commits Differential Revision: http://reviews.llvm.org/D21751 llvm-svn: 274741
59 lines
1.0 KiB
C++
59 lines
1.0 KiB
C++
//===-- SWIG Interface for SBMemoryRegionInfo -------------------*- C++ -*-===//
|
|
//
|
|
// The LLVM Compiler Infrastructure
|
|
//
|
|
// This file is distributed under the University of Illinois Open Source
|
|
// License. See LICENSE.TXT for details.
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
namespace lldb {
|
|
|
|
%feature("docstring",
|
|
"API clients can get information about memory regions in processes."
|
|
) SBMemoryRegionInfo;
|
|
|
|
class SBMemoryRegionInfo
|
|
{
|
|
public:
|
|
|
|
SBMemoryRegionInfo ();
|
|
|
|
SBMemoryRegionInfo (const lldb::SBMemoryRegionInfo &rhs);
|
|
|
|
~SBMemoryRegionInfo ();
|
|
|
|
void
|
|
Clear();
|
|
|
|
lldb::addr_t
|
|
GetRegionBase ();
|
|
|
|
lldb::addr_t
|
|
GetRegionEnd ();
|
|
|
|
bool
|
|
IsReadable ();
|
|
|
|
bool
|
|
IsWritable ();
|
|
|
|
bool
|
|
IsExecutable ();
|
|
|
|
bool
|
|
IsMapped ();
|
|
|
|
bool
|
|
operator == (const lldb::SBMemoryRegionInfo &rhs) const;
|
|
|
|
bool
|
|
operator != (const lldb::SBMemoryRegionInfo &rhs) const;
|
|
|
|
bool
|
|
GetDescription (lldb::SBStream &description);
|
|
|
|
};
|
|
|
|
} // namespace lldb
|