Crashpad
|
A ThreadSnapshot based on a thread in a minidump file. More...
#include "snapshot/minidump/thread_snapshot_minidump.h"
Public Member Functions | |
bool | Initialize (FileReaderInterface *file_reader, RVA minidump_thread_rva, CPUArchitecture arch) |
Initializes the object. More... | |
const CPUContext * | Context () const override |
Returns a CPUContext object corresponding to the thread’s CPU context. More... | |
const MemorySnapshot * | Stack () const override |
Returns a MemorySnapshot object corresponding to the memory region that contains the thread’s stack, or nullptr if no stack region is available. More... | |
uint64_t | ThreadID () const override |
Returns the thread’s identifier. More... | |
int | SuspendCount () const override |
Returns the thread’s suspend count. More... | |
int | Priority () const override |
Returns the thread’s priority. More... | |
uint64_t | ThreadSpecificDataAddress () const override |
Returns the base address of a region used to store thread-specific data. | |
std::vector< const MemorySnapshot * > | ExtraMemory () const override |
Returns a vector of additional memory blocks that should be included in a minidump. More... | |
A ThreadSnapshot based on a thread in a minidump file.
|
overridevirtual |
Returns a CPUContext object corresponding to the thread’s CPU context.
The caller does not take ownership of this object, it is scoped to the lifetime of the ThreadSnapshot object that it was obtained from.
Implements crashpad::ThreadSnapshot.
|
overridevirtual |
Returns a vector of additional memory blocks that should be included in a minidump.
Implements crashpad::ThreadSnapshot.
bool crashpad::internal::ThreadSnapshotMinidump::Initialize | ( | FileReaderInterface * | file_reader, |
RVA | minidump_thread_rva, | ||
CPUArchitecture | arch | ||
) |
Initializes the object.
[in] | file_reader | A file reader corresponding to a minidump file. The file reader must support seeking. |
[in] | minidump_thread_rva | The file offset in file_reader at which the thread’s MINIDUMP_THREAD structure is located. |
[in] | arch | The architecture of the system this thread is running on. Used to decode CPU Context. |
true
if the snapshot could be created, false
otherwise with an appropriate message logged.
|
overridevirtual |
Returns the thread’s priority.
Threads with higher priorities will have higher priority values.
Implements crashpad::ThreadSnapshot.
|
overridevirtual |
Returns a MemorySnapshot object corresponding to the memory region that contains the thread’s stack, or nullptr
if no stack region is available.
The caller does not take ownership of this object, it is scoped to the lifetime of the ThreadSnapshot object that it was obtained from.
Implements crashpad::ThreadSnapshot.
|
overridevirtual |
Returns the thread’s suspend count.
A suspend count of 0
denotes a schedulable (not suspended) thread.
Implements crashpad::ThreadSnapshot.
|
overridevirtual |
Returns the thread’s identifier.
Thread identifiers are at least unique within a process, and may be unique system-wide.
Implements crashpad::ThreadSnapshot.