diff options
| author | kcbanner <kcbanner@gmail.com> | 2023-06-27 23:53:05 -0400 |
|---|---|---|
| committer | kcbanner <kcbanner@gmail.com> | 2023-07-20 22:58:14 -0400 |
| commit | caa334712fc8f540349e54fa3008aa3fdef64e13 (patch) | |
| tree | 5cc39b79cc97a305cfbc981d9e426cf1896947d4 /lib/std/debug.zig | |
| parent | 89ef004646896a145ec0607678882a395fabda3d (diff) | |
| download | zig-caa334712fc8f540349e54fa3008aa3fdef64e13.tar.gz zig-caa334712fc8f540349e54fa3008aa3fdef64e13.zip | |
linux: rework getcontext to closer match the specification (saved IP/SP match the state after it would return)
debug: fixup ucontext_t check
Diffstat (limited to 'lib/std/debug.zig')
| -rw-r--r-- | lib/std/debug.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig index 2c3f93b55e..7b74be24af 100644 --- a/lib/std/debug.zig +++ b/lib/std/debug.zig @@ -136,7 +136,7 @@ pub fn dumpCurrentStackTrace(start_addr: ?usize) void { pub const StackTraceContext = blk: { if (native_os == .windows) { break :blk std.os.windows.CONTEXT; - } else if (@hasDecl(os.system, "ucontext_t")) { + } else if (StackIterator.supports_context) { break :blk os.ucontext_t; } else { break :blk void; |
