libdebug.data.memory_map
MemoryMap
dataclass
A memory map of the target process.
Attributes:
Name | Type | Description |
---|---|---|
start |
int
|
The start address of the memory map. You can access it also with the 'base' attribute. |
end |
int
|
The end address of the memory map. |
permissions |
str
|
The permissions of the memory map. |
size |
int
|
The size of the memory map. |
offset |
int
|
The relative offset of the memory map. |
backing_file |
str
|
The backing file of the memory map, or the symbolic name of the memory map. |
Source code in libdebug/data/memory_map.py
backing_file: str = ''
class-attribute
instance-attribute
The backing file of the memory map, such as 'libc.so.6', or the symbolic name of the memory map, such as '[stack]'.
base: int
property
Alias for the start address of the memory map.
offset: int = 0
class-attribute
instance-attribute
The relative offset of the memory map inside the backing file, if any.
__repr__()
Return the string representation of the memory map.
Source code in libdebug/data/memory_map.py
parse(vmap)
staticmethod
Parses a memory map from a /proc/pid/maps string representation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
vmap |
str
|
The string containing the memory map. |
required |
Returns:
Name | Type | Description |
---|---|---|
MemoryMap |
MemoryMap
|
The parsed memory map. |