Crashpad
 
Loading...
Searching...
No Matches
crashpad::MinidumpThreadNameListWriter Class Referencefinal

The writer for a MINIDUMP_THREAD_NAME_LIST stream in a minidump file, containing a list of MINIDUMP_THREAD_NAME objects. More...

#include "minidump/minidump_thread_name_list_writer.h"

Inheritance diagram for crashpad::MinidumpThreadNameListWriter:
[legend]
Collaboration diagram for crashpad::MinidumpThreadNameListWriter:
[legend]

Public Member Functions

 MinidumpThreadNameListWriter (const MinidumpThreadNameListWriter &)=delete
 
MinidumpThreadNameListWriteroperator= (const MinidumpThreadNameListWriter &)=delete
 
void InitializeFromSnapshot (const std::vector< const ThreadSnapshot * > &thread_snapshots, const MinidumpThreadIDMap &thread_id_map)
 Adds an initialized MINIDUMP_THREAD_NAME for each thread in thread_snapshots to the MINIDUMP_THREAD_NAME_LIST.
 
void AddThreadName (std::unique_ptr< MinidumpThreadNameWriter > thread_name)
 Adds a MinidumpThreadNameWriter to the MINIDUMP_THREAD_LIST.
 
- Public Member Functions inherited from crashpad::internal::MinidumpStreamWriter
 MinidumpStreamWriter (const MinidumpStreamWriter &)=delete
 
MinidumpStreamWriteroperator= (const MinidumpStreamWriter &)=delete
 
const MINIDUMP_DIRECTORYDirectoryListEntry () const
 Returns a MINIDUMP_DIRECTORY entry that serves as a pointer to this stream.
 
- Public Member Functions inherited from crashpad::internal::MinidumpWritable
 MinidumpWritable (const MinidumpWritable &)=delete
 
MinidumpWritableoperator= (const MinidumpWritable &)=delete
 
virtual bool WriteEverything (FileWriterInterface *file_writer)
 Writes an object and all of its children to a minidump file.
 
void RegisterRVA (RVA *rva)
 Registers a file offset pointer as one that should point to the object on which this method is called.
 
void RegisterRVA (RVA64 *rva)
 
void RegisterLocationDescriptor (MINIDUMP_LOCATION_DESCRIPTOR *location_descriptor)
 Registers a location descriptor as one that should point to the object on which this method is called.
 
void RegisterLocationDescriptor (MINIDUMP_LOCATION_DESCRIPTOR64 *location_descriptor64)
 

Additional Inherited Members

- Protected Types inherited from crashpad::internal::MinidumpWritable
enum  State
 Identifies the state of an object. More...
 
enum  Phase
 Identifies the phase during which an object will be written to a minidump file. More...
 
- Protected Member Functions inherited from crashpad::internal::MinidumpWritable
State state () const
 The state of the object.
 
virtual size_t Alignment ()
 Returns the object’s desired byte-boundary alignment.
 
virtual Phase WritePhase ()
 Returns the object’s desired write phase.
 
size_t WillWriteAtOffset (Phase phase, FileOffset *offset, std::vector< MinidumpWritable * > *write_sequence)
 Prepares the object to be written at a known file offset, transitioning it from kStateFrozen to kStateWritable.
 
virtual bool WillWriteAtOffsetImpl (FileOffset offset)
 Called once an object’s writable file offset is determined, as it transitions into kStateWritable.
 
bool WritePaddingAndObject (FileWriterInterface *file_writer)
 Writes the object, transitioning it from kStateWritable to kStateWritten.
 
- Static Protected Attributes inherited from crashpad::internal::MinidumpWritable
static constexpr size_t kInvalidSize = std::numeric_limits<size_t>::max()
 A size value used to signal failure by methods that return size_t.
 

Detailed Description

The writer for a MINIDUMP_THREAD_NAME_LIST stream in a minidump file, containing a list of MINIDUMP_THREAD_NAME objects.

Member Function Documentation

◆ AddThreadName()

void crashpad::MinidumpThreadNameListWriter::AddThreadName ( std::unique_ptr< MinidumpThreadNameWriter > thread_name)

Adds a MinidumpThreadNameWriter to the MINIDUMP_THREAD_LIST.

This object takes ownership of thread_name and becomes its parent in the overall tree of internal::MinidumpWritable objects.

Note
Valid in kStateMutable.

◆ InitializeFromSnapshot()

void crashpad::MinidumpThreadNameListWriter::InitializeFromSnapshot ( const std::vector< const ThreadSnapshot * > & thread_snapshots,
const MinidumpThreadIDMap & thread_id_map )

Adds an initialized MINIDUMP_THREAD_NAME for each thread in thread_snapshots to the MINIDUMP_THREAD_NAME_LIST.

Parameters
[in]thread_snapshotsThe thread snapshots to use as source data.
[in]thread_id_mapA MinidumpThreadIDMap previously built by MinidumpThreadListWriter::InitializeFromSnapshot().
Note
Valid in kStateMutable.

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