0
Fork 0
mirror of https://codeberg.org/ziglang/zig synced 2026-11-18 07:05:05 +00:00
zig/lib
Andrew Kelley b5398180d6 std.debug.Coverage.resolveAddressesDwarf: fix broken logic
The implementation assumed that compilation units did not overlap, which
is not the case. The new implementation uses .debug_ranges to iterate
over the requested PCs.

This partially resolves #20990. The dump-cov tool is fixed but the same
fix needs to be applied to `std.Build.Fuzz.WebServer` (sorting the PC
list before passing it to be resolved by debug info).

I am observing LLVM emit multiple 8-bit counters for the same PC
addresses when enabling `-fsanitize-coverage=inline-8bit-counters`. This
seems like a bug in LLVM. I can't fathom why that would be desireable.
History 2024-08-13 15:02:53 -07:00
..
compiler std.Target: Remove liteos OS tag. 2024-08-12 08:59:49 +02:00
compiler_rt compiler-rt: Fix the leoncasa CPU feature check for sparc32. 2024-08-12 14:36:21 -07:00
docs wasm zig source rendering: fix annotation location off-by-one 2024-08-07 00:48:32 -07:00
fuzzer more optimized and correct management of 8-bit PC counters 2024-08-08 21:46:36 -07:00
include update C language headers to LLVM 18 2024-05-08 19:37:28 -07:00
init Fix typo in init files. 2024-07-26 14:33:59 -07:00
libc Merge pull request #21004 from alexrp/linux-6.10 2024-08-09 13:08:39 -07:00
libcxx update libcxx and libcxxabi to llvm 18.1.6 2024-05-20 16:12:36 -04:00
libcxxabi update libcxx and libcxxabi to llvm 18.1.6 2024-05-20 16:12:36 -04:00
libunwind libunwind: update to LLVM 18 2024-05-08 19:37:29 -07:00
std std.debug.Coverage.resolveAddressesDwarf: fix broken logic 2024-08-13 15:02:53 -07:00
tsan tsan: update rtl files to LLVM 17.0.6 2024-01-10 01:00:37 -07:00
c.zig std.os.linux: Move clone() here and stop exporting it. 2024-08-07 01:19:51 -07:00
compiler_rt.zig stage2-wasm: bit_reverse 2024-06-16 11:53:33 +02:00
fuzzer.zig more optimized and correct management of 8-bit PC counters 2024-08-08 21:46:36 -07:00
zig.h zig.h: fixup pointer atomic load definitions 2024-07-26 10:42:10 -04:00