Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

supportsUnwinding

Tells whether unwinding for this target is supported by the Dwarf standard.

See also std.debug.SelfInfo.can_unwind which tells whether the Zig standard library has a working implementation of unwinding for the current target.

Dwarf.supportsUnwinding
pub fn supportsUnwinding(target: *const std.Target) bool

File

lib/std/debug/Dwarf.zig:1518

Code

pub fn supportsUnwinding(target: *const std.Target) bool {
    return switch (target.cpu.arch) {
        .amdgcn,
        .nvptx,
        .nvptx64,
        .spirv32,
        .spirv64,
        => false,

        // Conservative guess. Feel free to update this logic with any targets
        // that are known to not support Dwarf unwinding.
        else => true,
    };
}