◆ 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] | context | The 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] | context | The registers read from the target thread. |
◆ GetThreadArea()
Uses ptrace
to determine the thread-local storage address for the target thread and places the result in address.
- Parameters
-
[out] | address | The 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] | tid | The 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:
- util/linux/thread_info.h
- util/linux/thread_info.cc