Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
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 standard library. Public Function

supportsUnwinding

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

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.

Params

File

debug/Dwarf.zig:1598
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
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,
    };
}