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.

initSection

Initialize with unwind information from the contents of a .debug_frame or .eh_frame section.

If the .eh_frame_hdr section is available, consider instead using initEhFrameHdr, which allows the implementation to use a search table embedded in that section if it is available.

Unwind.initSection
pub fn initSection(section: Section, section_vaddr: u64, section_bytes: []const u8) Unwind

File

lib/std/debug/Dwarf/Unwind.zig:100

Code

pub fn initSection(section: Section, section_vaddr: u64, section_bytes: []const u8) Unwind {
    return .{
        .frame_section = .{
            .id = section,
            .bytes = section_bytes,
            .vaddr = section_vaddr,
        },
        .lookup = null,
        .cie_list = .empty,
    };
}