Skip to content

vmmap ¤

Functions:

get_memory_map ¤

get_memory_map() -> MemoryMap

get ¤

get() -> tuple[Page, ...]

find ¤

find(address: int | Value | None) -> Page | None

addr_region_start ¤

addr_region_start(address: int | Value) -> int | None

Let's define a "region" as contiguous memory compromised of memory mappings which all have the same object file name. Also referred to as "File (Base)" by xinfo.

Returns:

  • int | None

    The start of the memory region this address belongs to, or None if the address

  • int | None

    is not mapped.

named_region_start ¤

named_region_start(mapping_name: str, exact_match: bool = True) -> int | None

Returns the lowest address which is mapped with mapping_name.

This works both for object file names and stuff like "[heap]", but note that not all mappings with the same name are necessarily contiguous (especially if they aren't backed by an object file).

Will not invoke vmmap_explore.

If exact_match is True looks for exact path match, otherwise will match the os.path.basename()s.