DoxigAlpha

fpRegNum

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 fpRegNum(arch: Arch, reg_context: RegisterContext) u8 {
    return switch (arch) {
        // GCC on OS X historically did the opposite of ELF for these registers
        // (only in .eh_frame), and that is now the convention for MachO
        .x86 => if (reg_context.eh_frame and reg_context.is_macho) 4 else 5,
        .x86_64 => 6,
        .arm, .armeb, .thumb, .thumbeb => 11,
        .aarch64, .aarch64_be => 29,
        else => unreachable,
    };
}