From 874ffa0385046efdab5b03f2bfc04bb735968400 Mon Sep 17 00:00:00 2001 From: jakubtomsu <66876057+jakubtomsu@users.noreply.github.com> Date: Tue, 10 Feb 2026 19:19:30 +0100 Subject: remove core:fmt dependency from core:debug/trace --- core/debug/trace/trace_cpp.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/debug/trace/trace_cpp.odin') diff --git a/core/debug/trace/trace_cpp.odin b/core/debug/trace/trace_cpp.odin index 8ef377cef..49a5a9055 100644 --- a/core/debug/trace/trace_cpp.odin +++ b/core/debug/trace/trace_cpp.odin @@ -164,7 +164,7 @@ _resolve :: proc(ctx: ^Context, frame: Frame, allocator: runtime.Allocator) -> F } else if info: Dl_info; dladdr(rawptr(address), &info) != 0 && info.dli_sname != "" { frame.procedure = strings.clone_from_cstring(info.dli_sname, btc.allocator) } else { - frame.procedure = fmt.aprintf("(procedure: 0x%x)", allocator=btc.allocator) + fl.procedure = _format_missing_proc(address, allocator) } frame.line = i32(line) return 0 -- cgit v1.2.3 From edd960905a043ad08bb6bc3cfcc6234f9c9baa3c Mon Sep 17 00:00:00 2001 From: jakubtomsu <66876057+jakubtomsu@users.noreply.github.com> Date: Tue, 10 Feb 2026 19:48:12 +0100 Subject: fix typo in the trace cpp backend --- core/debug/trace/trace.odin | 2 +- core/debug/trace/trace_cpp.odin | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'core/debug/trace/trace_cpp.odin') diff --git a/core/debug/trace/trace.odin b/core/debug/trace/trace.odin index 8561d72c2..6a9ba9dab 100644 --- a/core/debug/trace/trace.odin +++ b/core/debug/trace/trace.odin @@ -74,4 +74,4 @@ _format_missing_proc :: proc(addr: uintptr, allocator: runtime.Allocator) -> str offs := len(PREFIX) offs += _format_hex(buf[offs:], uintptr(addr), allocator) return string(buf[:offs]) -} \ No newline at end of file +} diff --git a/core/debug/trace/trace_cpp.odin b/core/debug/trace/trace_cpp.odin index 49a5a9055..5c2c381d2 100644 --- a/core/debug/trace/trace_cpp.odin +++ b/core/debug/trace/trace_cpp.odin @@ -164,7 +164,7 @@ _resolve :: proc(ctx: ^Context, frame: Frame, allocator: runtime.Allocator) -> F } else if info: Dl_info; dladdr(rawptr(address), &info) != 0 && info.dli_sname != "" { frame.procedure = strings.clone_from_cstring(info.dli_sname, btc.allocator) } else { - fl.procedure = _format_missing_proc(address, allocator) + frame.procedure = _format_missing_proc(address, allocator) } frame.line = i32(line) return 0 -- cgit v1.2.3 From 26e4af28adbdfef1d751bae22c847568b602ebb3 Mon Sep 17 00:00:00 2001 From: jakubtomsu <66876057+jakubtomsu@users.noreply.github.com> Date: Tue, 10 Feb 2026 19:55:50 +0100 Subject: remove the actual fmt import from trace_cpp --- core/debug/trace/trace_cpp.odin | 1 - 1 file changed, 1 deletion(-) (limited to 'core/debug/trace/trace_cpp.odin') diff --git a/core/debug/trace/trace_cpp.odin b/core/debug/trace/trace_cpp.odin index 5c2c381d2..afa065474 100644 --- a/core/debug/trace/trace_cpp.odin +++ b/core/debug/trace/trace_cpp.odin @@ -5,7 +5,6 @@ package debug_trace import "base:intrinsics" import "base:runtime" import "core:strings" -import "core:fmt" import "core:c" // NOTE: Relies on C++23 which adds and becomes ABI and that can be used -- cgit v1.2.3 From 83489c07f1123e1994e40a08a32206d8d78414a9 Mon Sep 17 00:00:00 2001 From: jakubtomsu <66876057+jakubtomsu@users.noreply.github.com> Date: Tue, 10 Feb 2026 19:56:49 +0100 Subject: fix allocator error --- core/debug/trace/trace_cpp.odin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/debug/trace/trace_cpp.odin') diff --git a/core/debug/trace/trace_cpp.odin b/core/debug/trace/trace_cpp.odin index afa065474..1a96ee112 100644 --- a/core/debug/trace/trace_cpp.odin +++ b/core/debug/trace/trace_cpp.odin @@ -163,7 +163,7 @@ _resolve :: proc(ctx: ^Context, frame: Frame, allocator: runtime.Allocator) -> F } else if info: Dl_info; dladdr(rawptr(address), &info) != 0 && info.dli_sname != "" { frame.procedure = strings.clone_from_cstring(info.dli_sname, btc.allocator) } else { - frame.procedure = _format_missing_proc(address, allocator) + frame.procedure = _format_missing_proc(address, btc.allocator) } frame.line = i32(line) return 0 -- cgit v1.2.3