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

initSection

Public Function
std.debug.Dwarf.Unwind.initSection
pub fn initSection(section: Section, section_vaddr: u64, section_bytes: []const u8) Unwind

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.

Params

  • section: Section
  • section_vaddr: u64
  • section_bytes: []const u8

File

debug/Dwarf/Unwind.zig:100
100
101
102
103
104
105
106
107
108
109
110
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,
    };
}