Crashpad
Public Member Functions | List of all members
crashpad::ThreadSnapshot Class Referenceabstract

An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot process. More...

#include "snapshot/thread_snapshot.h"

Inheritance diagram for crashpad::ThreadSnapshot:
crashpad::internal::ThreadSnapshotFuchsia crashpad::internal::ThreadSnapshotIOS crashpad::internal::ThreadSnapshotLinux crashpad::internal::ThreadSnapshotMac crashpad::internal::ThreadSnapshotMinidump crashpad::internal::ThreadSnapshotSanitized crashpad::internal::ThreadSnapshotWin crashpad::test::TestThreadSnapshot

Public Member Functions

virtual const CPUContextContext () const =0
 Returns a CPUContext object corresponding to the thread’s CPU context. More...
 
virtual const MemorySnapshotStack () 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...
 

Detailed Description

An abstract interface to a snapshot representing a thread (lightweight process) present in a snapshot process.

Member Function Documentation

◆ Context()

virtual const CPUContext* crashpad::ThreadSnapshot::Context ( ) const
pure virtual

◆ ExtraMemory()

virtual std::vector<const MemorySnapshot*> crashpad::ThreadSnapshot::ExtraMemory ( ) const
pure virtual

Returns a vector of additional memory blocks that should be included in a minidump.

Returns
A vector of MemorySnapshot objects that will be included in the crash dump. The caller does not take ownership of these objects, they are scoped to the lifetime of the ThreadSnapshot object that they were 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.

◆ Priority()

virtual int crashpad::ThreadSnapshot::Priority ( ) const
pure virtual

◆ Stack()

virtual const MemorySnapshot* crashpad::ThreadSnapshot::Stack ( ) const
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.

◆ SuspendCount()

virtual int crashpad::ThreadSnapshot::SuspendCount ( ) const
pure virtual

◆ ThreadID()

virtual uint64_t crashpad::ThreadSnapshot::ThreadID ( ) const
pure virtual

The documentation for this class was generated from the following file: