fix typo in the trace cpp backend

This commit is contained in:
jakubtomsu
2026-02-10 19:48:12 +01:00
parent 77be6a1f18
commit edd960905a
2 changed files with 2 additions and 2 deletions

View File

@@ -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])
}
}

View File

@@ -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