microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Attributes | List of all members
microfmt::trap_context Struct Reference

Normalized, architecture-independent snapshot of a trap context. More...

#include <exception_frame.hpp>

Public Attributes

uint32_t trap_level {0}
 Nested trap level (0 = primary/top fault).
 
uintptr_t trap_frame_addr {0}
 Address of the raw architecture trap frame.
 
uintptr_t pc {0}
 Faulting instruction pointer (RIP/PC/ELR).
 
uintptr_t sp {0}
 Faulting stack pointer (RSP/SP).
 
uintptr_t fp {0}
 Faulting frame pointer (RBP/FP/x29).
 
uintptr_t lr {0}
 Link register (AArch64/ARM32), or 0 on x86.
 
uint64_t vector_or_reason {0}
 Vector number, trap error code, or exception syndrome register.
 
bool is_user_mode {false}
 true when the trap originated in user mode.
 

Detailed Description

Normalized, architecture-independent snapshot of a trap context.

Member Data Documentation

◆ fp

uintptr_t microfmt::trap_context::fp {0}

Faulting frame pointer (RBP/FP/x29).

◆ is_user_mode

bool microfmt::trap_context::is_user_mode {false}

true when the trap originated in user mode.

◆ lr

uintptr_t microfmt::trap_context::lr {0}

Link register (AArch64/ARM32), or 0 on x86.

◆ pc

uintptr_t microfmt::trap_context::pc {0}

Faulting instruction pointer (RIP/PC/ELR).

◆ sp

uintptr_t microfmt::trap_context::sp {0}

Faulting stack pointer (RSP/SP).

◆ trap_frame_addr

uintptr_t microfmt::trap_context::trap_frame_addr {0}

Address of the raw architecture trap frame.

◆ trap_level

uint32_t microfmt::trap_context::trap_level {0}

Nested trap level (0 = primary/top fault).

◆ vector_or_reason

uint64_t microfmt::trap_context::vector_or_reason {0}

Vector number, trap error code, or exception syndrome register.


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