Function open [src]

Initialize DWARF info. The caller has the responsibility to initialize most the Dwarf fields before calling. binary_mem is the raw bytes of the main binary file (not the secondary debug info file).

Prototype

pub fn open(d: *Dwarf, gpa: Allocator) OpenError!void

Parameters

d: *Dwarfgpa: Allocator

Possible Errors

EndOfBuffer Error
InvalidBuffer Error
InvalidDebugInfo ScanError
MissingDebugInfo ScanError
OutOfMemory Error
Overflow Error

Source

pub fn open(d: *Dwarf, gpa: Allocator) OpenError!void { try d.scanAllFunctions(gpa); try d.scanAllCompileUnits(gpa); }