Crashpad
|
Accesses information about mapped memory in another process. More...
#include "util/linux/memory_map.h"
Classes | |
struct | Mapping |
Information about a mapped region of memory. More... | |
Public Member Functions | |
bool | Initialize (pid_t pid) |
Initializes this object with information about the mapped memory regions in the process whose ID is pid. More... | |
const Mapping * | FindMapping (LinuxVMAddress address) const |
const Mapping * | FindMappingWithName (const std::string &name) const |
Accesses information about mapped memory in another process.
The target process must be stopped to guarantee correct mappings. If the target process is not stopped, mappings may be invalid after the return from Initialize(), and even mappings existing at the time Initialize() was called may not be found.
const MemoryMap::Mapping * crashpad::MemoryMap::FindMapping | ( | LinuxVMAddress | address | ) | const |
const MemoryMap::Mapping * crashpad::MemoryMap::FindMappingWithName | ( | const std::string & | name | ) | const |
bool crashpad::MemoryMap::Initialize | ( | pid_t | pid | ) |
Initializes this object with information about the mapped memory regions in the process whose ID is pid.
This method must be called successfully prior to calling any other method in this class. This method may only be called once.
[in] | pid | The process ID to obtain information for. |
true
on success, false
on failure with a message logged.