◆ CaptureMemoryDelegateLinux()
A MemoryCaptureDelegate for Linux.
- Parameters
-
[in] | process_reader | A ProcessReaderLinux for the target process. |
[in] | thread_opt | The thread being inspected. Memory ranges overlapping this thread's stack will be ignored on the assumption that they're already captured elsewhere. May be nullptr. |
[in] | snapshots | A vector of MemorySnapshotGeneric to which the captured memory will be added. |
[in] | budget_remaining | If non-null, a pointer to the remaining number of bytes to capture. If this is 0 , no further memory will be captured. |
◆ AddNewMemorySnapshot()
void crashpad::internal::CaptureMemoryDelegateLinux::AddNewMemorySnapshot |
( |
const CheckedRange< uint64_t, uint64_t > & | range | ) |
|
|
overridevirtual |
◆ GetReadableRanges()
std::vector< CheckedRange< uint64_t > > crashpad::internal::CaptureMemoryDelegateLinux::GetReadableRanges |
( |
const CheckedRange< uint64_t, uint64_t > & | range | ) |
const |
|
overridevirtual |
Given a range to be read from the target process, returns a vector of ranges, representing the readable portions of the original range.
- Parameters
-
[in] | range | The range being identified. |
- Returns
- A vector of ranges corresponding to the portion of range that is readable.
Implements crashpad::internal::CaptureMemory::Delegate.
◆ Is64Bit()
bool crashpad::internal::CaptureMemoryDelegateLinux::Is64Bit |
( |
| ) |
const |
|
overridevirtual |
◆ ReadMemory()
bool crashpad::internal::CaptureMemoryDelegateLinux::ReadMemory |
( |
uint64_t | at, |
|
|
uint64_t | num_bytes, |
|
|
void * | into ) const |
|
overridevirtual |
Attempts to read num_bytes bytes from the target process starting at address at into into.
- Returns
true
if the entire region could be read, or false
with an error logged.
Implements crashpad::internal::CaptureMemory::Delegate.
The documentation for this class was generated from the following files:
- snapshot/linux/capture_memory_delegate_linux.h
- snapshot/linux/capture_memory_delegate_linux.cc