fn getAttrAddr( self: *const Die, di: *const Dwarf, endian: Endian, id: u64, compile_unit: *const CompileUnit, ) error
self: *const Die
di: *const Dwarf
endian: Endian
id: u64
compile_unit: *const CompileUnit
231 232 233 234 235 236 237 238 239 240 241 242 243 244
fn getAttrAddr( self: *const Die, di: *const Dwarf, endian: Endian, id: u64, compile_unit: *const CompileUnit, ) error{ InvalidDebugInfo, MissingDebugInfo }!u64 { const form_value = self.getAttr(id) orelse return error.MissingDebugInfo; return switch (form_value.*) { .addr => |value| value, .addrx => |index| di.readDebugAddr(endian, compile_unit, index), else => bad(), }; }