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

A context structure capable of carrying the context of any supported CPU architecture. More...

#include "snapshot/cpu_context.h"

Collaboration diagram for crashpad::CPUContext:
[legend]

Public Member Functions

uint64_t InstructionPointer () const
 Returns the instruction pointer value from the context structure.
 
uint64_t StackPointer () const
 Returns the stack pointer value from the context structure.
 
uint64_t ShadowStackPointer () const
 Returns the shadow stack pointer value from the context structure.
 
bool Is64Bit () const
 Returns true if this context is for a 64-bit architecture.
 
bool HasShadowStack () const
 Returns true if this context has an active shadow stack pointer.
 

Public Attributes

CPUArchitecture architecture
 The CPU architecture of a context structure. This field controls the expression of the union.
 
union { 
 
   CPUContextX86 *   x86 
 
   CPUContextX86_64 *   x86_64 
 
   CPUContextARM *   arm 
 
   CPUContextARM64 *   arm64 
 
   CPUContextMIPS *   mipsel 
 
   CPUContextMIPS64 *   mips64 
 
   CPUContextRISCV64 *   riscv64 
 
};  
 

Detailed Description

A context structure capable of carrying the context of any supported CPU architecture.

Member Function Documentation

◆ InstructionPointer()

uint64_t crashpad::CPUContext::InstructionPointer ( ) const

Returns the instruction pointer value from the context structure.

This is a CPU architecture-independent method that is capable of recovering the instruction pointer from any supported CPU architecture’s context structure.

◆ ShadowStackPointer()

uint64_t crashpad::CPUContext::ShadowStackPointer ( ) const

Returns the shadow stack pointer value from the context structure.

This is a CPU architecture-independent method that is capable of recovering the shadow stack pointer from any supported CPU architecture’s context structure.

◆ StackPointer()

uint64_t crashpad::CPUContext::StackPointer ( ) const

Returns the stack pointer value from the context structure.

This is a CPU architecture-independent method that is capable of recovering the stack pointer from any supported CPU architecture’s context structure.


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