PStack  2.0
Stack trace printer for MSVC and GCC binaries
thread_info.cpp File Reference

Define a container for a single thread of execution. More...

Include dependency graph for thread_info.cpp:

Namespaces

 psystem
 Contains the process examination "system" and basic frameworks.
 

Static Utilities

static STACKFRAME64 create_initial_stack_frame (CONTEXT const &) noexcept
 Initialize a stack frame object for the first call into StackWalk64. More...
 
static CONTEXT get_initial_thread_context (HANDLE thread_handle)
 Create and initialize a stack frame context based on the thread context. More...
 

Detailed Description

Define a container for a single thread of execution.

Author
Matt Bisson
Date
5 August, 2014
Since
PSystem 2.0
Version
PSystem 2.0

Function Documentation

static STACKFRAME64 create_initial_stack_frame ( CONTEXT const &  )
staticnoexcept

Initialize a stack frame object for the first call into StackWalk64.

Parameters
[in]contextA thread context to initialize data in the resulting STACKFRAME64 object.
Returns
A newly initialzed STACKFRAME64 object.
static CONTEXT get_initial_thread_context ( HANDLE  thread_handle)
static

Create and initialize a stack frame context based on the thread context.

Parameters
[in]thread_handleThis method requires a valid thread handle to get the thread context.
Returns
A newly initialized frame context.
Exceptions
psystem::exception::system_exceptionIf there was some error getting the current thread context.