From 2eea06fc73ea7abc1432a2ad368d0fe032f5ba6f Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 28 Apr 2024 12:51:10 +0100 Subject: [PATCH] Set `in_resolve` for linux --- core/debug/trace/trace_linux.odin | 3 +++ 1 file changed, 3 insertions(+) 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,