Crashpad
|
An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot process. More...
#include "snapshot/thread_snapshot.h"
Public Member Functions | |
virtual const CPUContext * | Context () const =0 |
Returns a CPUContext object corresponding to the thread’s CPU context. More... | |
virtual const MemorySnapshot * | Stack () const =0 |
Returns a MemorySnapshot object corresponding to the memory region that contains the thread’s stack, or nullptr if no stack region is available. More... | |
virtual uint64_t | ThreadID () const =0 |
Returns the thread’s identifier. More... | |
virtual int | SuspendCount () const =0 |
Returns the thread’s suspend count. More... | |
virtual int | Priority () const =0 |
Returns the thread’s priority. More... | |
virtual uint64_t | ThreadSpecificDataAddress () const =0 |
Returns the base address of a region used to store thread-specific data. | |
virtual std::vector< const MemorySnapshot * > | ExtraMemory () const =0 |
Returns a vector of additional memory blocks that should be included in a minidump. More... | |
An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot process.
|
pure virtual |
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.
Implemented in crashpad::test::TestThreadSnapshot, crashpad::internal::ThreadSnapshotWin, crashpad::internal::ThreadSnapshotMac, crashpad::internal::ThreadSnapshotFuchsia, crashpad::internal::ThreadSnapshotLinux, crashpad::internal::ThreadSnapshotMinidump, crashpad::internal::ThreadSnapshotIOS, and crashpad::internal::ThreadSnapshotSanitized.
|
pure virtual |
Returns a vector of additional memory blocks that should be included in a minidump.
Implemented in crashpad::test::TestThreadSnapshot, crashpad::internal::ThreadSnapshotWin, crashpad::internal::ThreadSnapshotMac, crashpad::internal::ThreadSnapshotFuchsia, crashpad::internal::ThreadSnapshotLinux, crashpad::internal::ThreadSnapshotMinidump, crashpad::internal::ThreadSnapshotIOS, and crashpad::internal::ThreadSnapshotSanitized.
|
pure virtual |
Returns the thread’s priority.
Threads with higher priorities will have higher priority values.
Implemented in crashpad::test::TestThreadSnapshot, crashpad::internal::ThreadSnapshotWin, crashpad::internal::ThreadSnapshotMac, crashpad::internal::ThreadSnapshotFuchsia, crashpad::internal::ThreadSnapshotLinux, crashpad::internal::ThreadSnapshotMinidump, crashpad::internal::ThreadSnapshotIOS, and crashpad::internal::ThreadSnapshotSanitized.
|
pure virtual |
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.
Implemented in crashpad::test::TestThreadSnapshot, crashpad::internal::ThreadSnapshotWin, crashpad::internal::ThreadSnapshotMac, crashpad::internal::ThreadSnapshotFuchsia, crashpad::internal::ThreadSnapshotLinux, crashpad::internal::ThreadSnapshotMinidump, crashpad::internal::ThreadSnapshotIOS, and crashpad::internal::ThreadSnapshotSanitized.
|
pure virtual |
Returns the thread’s suspend count.
A suspend count of 0
denotes a schedulable (not suspended) thread.
Implemented in crashpad::test::TestThreadSnapshot, crashpad::internal::ThreadSnapshotWin, crashpad::internal::ThreadSnapshotMac, crashpad::internal::ThreadSnapshotFuchsia, crashpad::internal::ThreadSnapshotLinux, crashpad::internal::ThreadSnapshotMinidump, crashpad::internal::ThreadSnapshotIOS, and crashpad::internal::ThreadSnapshotSanitized.
|
pure virtual |
Returns the thread’s identifier.
Thread identifiers are at least unique within a process, and may be unique system-wide.
Implemented in crashpad::test::TestThreadSnapshot, crashpad::internal::ThreadSnapshotWin, crashpad::internal::ThreadSnapshotMac, crashpad::internal::ThreadSnapshotFuchsia, crashpad::internal::ThreadSnapshotLinux, crashpad::internal::ThreadSnapshotMinidump, crashpad::internal::ThreadSnapshotIOS, and crashpad::internal::ThreadSnapshotSanitized.