diff --git a/lldb/bindings/interface/SBProcessDocstrings.i b/lldb/bindings/interface/SBProcessDocstrings.i index 1b98a79e4f6d3..b5b22052a6094 100644 --- a/lldb/bindings/interface/SBProcessDocstrings.i +++ b/lldb/bindings/interface/SBProcessDocstrings.i @@ -258,3 +258,14 @@ SBProcess supports thread iteration. For example (from test/lldbutil.py), :: Deallocates the block of memory (previously allocated using AllocateMemory) given in the argument." ) lldb::SBProcess::DeallocateMemory; + +%feature("docstring", " + Get a list of all the memory regions associated with this process. + ``` + readable_regions = [] + for region in process.GetMemoryRegions(): + if region.IsReadable(): + readable_regions.append(region) + ``` +" +) lldb::SBProcess::GetMemoryRegions;