Crashpad
|
Accesses the memory of another Linux process. More...
#include "util/process/process_memory_linux.h"
Public Member Functions | |
bool | Initialize (pid_t pid) |
Initializes this object to read the memory of a process whose ID is pid. More... | |
Public Member Functions inherited from crashpad::ProcessMemory | |
bool | Read (VMAddress address, VMSize size, void *buffer) const |
Copies memory from the target process into a caller-provided buffer in the current process. More... | |
bool | ReadCString (VMAddress address, std::string *string) const |
Reads a NUL -terminated C string from the target process into a string in the current process. More... | |
bool | ReadCStringSizeLimited (VMAddress address, VMSize size, std::string *string) const |
Reads a NUL -terminated C string from the target process into a string in the current process. More... | |
Accesses the memory of another Linux process.
bool crashpad::ProcessMemoryLinux::Initialize | ( | pid_t | pid | ) |
Initializes this object to read the memory of a process whose ID is pid.
This method must be called successfully prior to calling any other method in this class.
[in] | pid | The process ID of a target process. |
true
on success, false
on failure with a message logged.