ipRegNum
Returns null for CPU architectures without an instruction pointer register.
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 ipRegNum(arch: Arch) ?u8 {
return switch (arch) {
.x86 => 8,
.x86_64 => 16,
.arm, .armeb, .thumb, .thumbeb => 15,
.aarch64, .aarch64_be => 32,
else => null,
};
}