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: *Dwarf
gpa: Allocator
Possible Errors
Source
pub fn open(d: *Dwarf, gpa: Allocator) OpenError!void {
try d.scanAllFunctions(gpa);
try d.scanAllCompileUnits(gpa);
}