aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug/Coverage.zig
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2025-09-18 15:03:45 +0100
committermlugg <mlugg@mlugg.co.uk>2025-09-30 13:44:55 +0100
commitdae703d3c028eab3bf98d89d2bca1abc75f864fa (patch)
tree4bd94cfc89a12966a4d585f1c2da73ec861c6a8b /lib/std/debug/Coverage.zig
parent2ab650b4817cbb22244c17de828e82cbb0ccf15e (diff)
downloadzig-dae703d3c028eab3bf98d89d2bca1abc75f864fa.tar.gz
zig-dae703d3c028eab3bf98d89d2bca1abc75f864fa.zip
std.posix.abort: only trigger breakpoint on Windows if being debugged
Processes should reasonably be able to expect their children to abort with typical exit codes, rather than a debugger breakpoint signal. This flag in the PEB is what would be checked by `IsDebuggerPresent` in kernel32, which is the function you would typically use for this purpose. This fixes `test-stack-trace` failures on Windows, as these tests were expecting exit code 3 to indicate abort.
Diffstat (limited to 'lib/std/debug/Coverage.zig')
0 files changed, 0 insertions, 0 deletions