Expand description
The fault module contains the implementation for handling breakpoints, traps, and signals for wasm code.
Modules§
- raw
- The raw module contains required externed function interfaces for the fault module.
Structs§
- Boundary
Register Preservation - A store for boundary register preservation.
- Fault
Info - Info about the fault
Functions§
- allocate_
and_ run - Allocates and runs with the given stack size and closure.
- begin_
unsafe_ ⚠unwind - Begins an unsafe unwind.
- catch_
unsafe_ ⚠unwind - Catches an unsafe unwind with the given functions and breakpoints.
- clear_
wasm_ ⚠interrupt - Clears the wasm interrupt.
- ensure_
sighandler - Ensure the signal handler is installed.
- get_
boundary_ ⚠register_ preservation - Gets a mutable pointer to the
BoundaryRegisterPreservation. - get_
fault_ ⚠info - Get fault info from siginfo and ucontext.
- get_
wasm_ ⚠interrupt_ signal_ mem - Gets the wasm interrupt signal mem.
- pop_
code_ version - Pops a
CodeVersionfrom the current code versions. - push_
code_ version - Pushes a new
CodeVersionto the current code versions. - set_
wasm_ ⚠interrupt - Sets a wasm interrupt.
- set_
wasm_ ⚠interrupt_ on_ ctx - Sets the wasm interrupt on the given
Ctx. - with_
ctx ⚠ - Runs a callback function with the given
Ctx.