diff options
| author | gingerBill <bill@gingerbill.org> | 2024-04-28 12:51:10 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-04-28 12:51:10 +0100 |
| commit | 2eea06fc73ea7abc1432a2ad368d0fe032f5ba6f (patch) | |
| tree | 823e83824450e3383a54b65418a7b21480d0a20a /core/debug/trace | |
| parent | 0fa269811a6001fb21c8c9f074005f7c82584d82 (diff) | |
Set `in_resolve` for linux
Diffstat (limited to 'core/debug/trace')
| -rw-r--r-- | core/debug/trace/trace_linux.odin | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/debug/trace/trace_linux.odin b/core/debug/trace/trace_linux.odin index 529a83470..c65a165f9 100644 --- a/core/debug/trace/trace_linux.odin +++ b/core/debug/trace/trace_linux.odin @@ -131,6 +131,9 @@ _frames :: proc(ctx: ^Context, skip: uint, allocator: runtime.Allocator) -> (fra @(private="package") _resolve :: proc(ctx: ^Context, frame: Frame, allocator: runtime.Allocator) -> Frame_Location { + intrinsics.atomic_store(&ctx.in_resolve, true) + defer intrinsics.atomic_store(&ctx.in_resolve, false) + Backtrace_Context :: struct { rt_ctx: runtime.Context, allocator: runtime.Allocator, |