Crashpad
|
A list of mappings in the address space of a Fuchsia process. More...
#include "snapshot/fuchsia/memory_map_fuchsia.h"
Public Member Functions | |
bool | Initialize (const zx::process &process) |
Initializes this object with information about the mapped memory regions in the given process. More... | |
bool | FindMappingForAddress (zx_vaddr_t address, zx_info_maps_t *map) const |
Searches through the previously retrieved memory map for the given address. If found, returns the deepest zx_info_maps_t mapping that contains address. More... | |
const std::vector< zx_info_maps_t > & | Entries () const |
Get a vector of zx_info_maps_t representing the memory map for this process. | |
A list of mappings in the address space of a Fuchsia process.
bool crashpad::MemoryMapFuchsia::FindMappingForAddress | ( | zx_vaddr_t | address, |
zx_info_maps_t * | map | ||
) | const |
Searches through the previously retrieved memory map for the given address. If found, returns the deepest zx_info_maps_t
mapping that contains address.
[in] | address | The address to locate. |
[out] | map | The zx_info_maps_t data corresponding to the address. |
true
if a mapping for address was found, in which case map will be filled out, otherwise false
and map will be unchanged. bool crashpad::MemoryMapFuchsia::Initialize | ( | const zx::process & | process | ) |
Initializes this object with information about the mapped memory regions in the given process.
true
on success, or false
, with an error logged.