aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug/Coverage.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-08-13 17:58:01 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-08-13 18:04:23 -0700
commit022bca9b0600da3dda8b30fefe8eb817647b0f08 (patch)
tree9a855d043651aef5e599292ed461d49326d9739c /lib/std/debug/Coverage.zig
parenta9e7fb0e0189e01ebf67b144aca3fd8c318925c3 (diff)
downloadzig-022bca9b0600da3dda8b30fefe8eb817647b0f08.tar.gz
zig-022bca9b0600da3dda8b30fefe8eb817647b0f08.zip
std.debug.Dwarf: better source location information
Two fixes here: Sort by addresses after generating the line table. Debug information in the wild is not sorted and the rest of the implementation requires this data to be sorted. Handle DW.LNE.end_sequence correctly. When I originally wrote this code, I misunderstood what this opcode was supposed to do. Now I understand that it marks the *end* of an address range, meaning the current address does *not* map to the current line information. This fixes source location information for a big chunk of ReleaseSafe code.
Diffstat (limited to 'lib/std/debug/Coverage.zig')
0 files changed, 0 insertions, 0 deletions