Function resolveAddresses [src]
Given an array of virtual memory addresses, sorted ascending, outputs a
corresponding array of source locations.
Prototype
pub fn resolveAddresses( info: *Info, gpa: Allocator, sorted_pc_addrs: []const u64, output: []SourceLocation, ) ResolveAddressesError!void
Parameters
info: *Info
gpa: Allocator
sorted_pc_addrs: []const u64Asserts the addresses are in ascending order.
output: []SourceLocationAsserts its length equals length of sorted_pc_addrs.
Possible Errors
Source
pub fn resolveAddresses(
info: *Info,
gpa: Allocator,
/// Asserts the addresses are in ascending order.
sorted_pc_addrs: []const u64,
/// Asserts its length equals length of `sorted_pc_addrs`.
output: []SourceLocation,
) ResolveAddressesError!void {
assert(sorted_pc_addrs.len == output.len);
if (info.address_map.entries.len != 1) @panic("TODO");
const elf_module = &info.address_map.values()[0];
return info.coverage.resolveAddressesDwarf(gpa, sorted_pc_addrs, output, &elf_module.dwarf);
}