spRegNum
Function parameters
Parameters
Type definitions in this namespace
Types
Tells whether unwinding for this target is supported by the Dwarf standard.
Functions
- supportsUnwinding
- Tells whether unwinding for this target is supported by the Dwarf standard.
- ipRegNum
- Returns `null` for CPU architectures without an instruction pointer register.
- regBytes
- Returns a slice containing the backing storage for `reg_number`.
- regValueNative
- Returns a pointer to a register stored in a ThreadContext, preserving the
Error sets in this namespace
Error Sets
Source
Implementation
pub fn spRegNum(arch: Arch, reg_context: RegisterContext) u8 {
return switch (arch) {
.x86 => if (reg_context.eh_frame and reg_context.is_macho) 5 else 4,
.x86_64 => 7,
.arm, .armeb, .thumb, .thumbeb => 13,
.aarch64, .aarch64_be => 31,
else => unreachable,
};
}