Amd64TrapFrame

final class ntoseye.Amd64TrapFrame

Subclass of BaseRecord.

The x64 registers that a _KTRAP_FRAME saved. The nonvolatile r12-r15 live in the accompanying _KEXCEPTION_FRAME, not the trap frame.

What a frame holds depends on the entry that built it, kind (see TrapKind). A register the entry does not write is None rather than whatever its slot held.

property cs: int
property eflags: int
property error_code: int | None

The exception error code, which is stale for an exception whose vector carries none (#DE, #BP, #UD, …): the frame cannot tell them apart.

property kind: Literal['interrupt', 'exception', 'system_call', 'zw_call'] | None

The entry that built the frame: interrupt, exception, system call, or Zw call. None if the entry is unknown (no or an unknown ExceptionActive), and then only the machine frame and rbp, which every entry writes, are reliable.

property previous_irql: int | None

The IRQL before the trap, which only interrupts record.

property previous_mode: int

The mode that the trap came from: 0 for kernel, 1 for user. It is read from the saved cs, as Windows reads it: the PreviousMode field is set only by system calls.

property r10: int | None
property r11: int | None
property r8: int | None
property r9: int | None
property rax: int | None
property rbp: int
property rbx: int | None
property rcx: int | None
property rdi: int | None
property rdx: int | None
property rip: int
property rsi: int | None
property rsp: int
property ss: int | None