Crashpad
Public Member Functions | List of all members
crashpad::ThreadInfo Class Reference

Public Member Functions

bool Initialize (pid_t tid)
 Initializes this object with information about the thread whose ID is tid. More...
 
bool Is64Bit ()
 Determines the target thread’s bitness. More...
 
void GetGeneralPurposeRegisters (ThreadContext *context)
 Uses ptrace to collect general purpose registers from the target thread and places the result in context. More...
 
bool GetFloatingPointRegisters (FloatContext *context)
 Uses ptrace to collect floating point registers from the target thread and places the result in context. More...
 
bool GetThreadArea (LinuxVMAddress *address)
 Uses ptrace to determine the thread-local storage address for the target thread and places the result in address. More...
 

Member Function Documentation

◆ GetFloatingPointRegisters()

bool crashpad::ThreadInfo::GetFloatingPointRegisters ( FloatContext context)

Uses ptrace to collect floating point registers from the target thread and places the result in context.

Parameters
[out]contextThe registers read from the target thread.
Returns
true on success, with context set. Otherwise, false with a message logged.

◆ GetGeneralPurposeRegisters()

void crashpad::ThreadInfo::GetGeneralPurposeRegisters ( ThreadContext context)

Uses ptrace to collect general purpose registers from the target thread and places the result in context.

Parameters
[out]contextThe registers read from the target thread.

◆ GetThreadArea()

bool crashpad::ThreadInfo::GetThreadArea ( LinuxVMAddress address)

Uses ptrace to determine the thread-local storage address for the target thread and places the result in address.

Parameters
[out]addressThe address of the TLS area.
Returns
true on success. false on failure with a message logged.

◆ Initialize()

bool crashpad::ThreadInfo::Initialize ( pid_t  tid)

Initializes this object with information about the thread whose ID is tid.

This method must be called successfully prior to calling any other method in this class. This method may only be called once.

It is unspecified whether the information that an object of this class returns is loaded at the time Initialize() is called or subsequently, and whether this information is cached in the object or not.

Parameters
[in]tidThe thread ID to obtain information for.
Returns
true on success, false on failure with a message logged.

◆ Is64Bit()

bool crashpad::ThreadInfo::Is64Bit ( )

Determines the target thread’s bitness.

Returns
true if the target is 64-bit.

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