Crashpad
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Loading...
Searching...
No Matches
crashpad::ProcessReaderLinux::Thread Struct Reference

Contains information about a thread that belongs to a process. More...

#include "snapshot/linux/process_reader_linux.h"

Collaboration diagram for crashpad::ProcessReaderLinux::Thread:
[legend]

Public Member Functions

void InitializeStackFromSP (ProcessReaderLinux *reader, LinuxVMAddress stack_pointer)
 Initializes the thread's stack using stack_pointer instead of the stack pointer in thread_info.
 

Public Attributes

ThreadInfo thread_info
 
LinuxVMAddress stack_region_address
 
LinuxVMSize stack_region_size
 
std::string name
 
pid_t tid
 
int sched_policy
 
int static_priority
 
int nice_value
 
bool have_priorities
 true if sched_policy, static_priority, and nice_value are all valid.
 

Friends

class ProcessReaderLinux
 

Detailed Description

Contains information about a thread that belongs to a process.

Member Function Documentation

◆ InitializeStackFromSP()

void crashpad::ProcessReaderLinux::Thread::InitializeStackFromSP ( ProcessReaderLinux * reader,
LinuxVMAddress stack_pointer )

Initializes the thread's stack using stack_pointer instead of the stack pointer in thread_info.

This method initializes stack_region_address and stack_region_size overwriting any values they previously contained. This is useful, for example, if the thread is currently in a signal handler context, which may execute on a different stack than was used before the signal was received.

Parameters
[in]readerA process reader for the target process.
[in]stack_pointerThe stack pointer for the stack to initialize.

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