core/debug/trace
debug_trace
Types
9Context
Context :: struct {
in_resolve: bool,
impl: _Context,
}SourceDl_info
Dl_info :: struct {
dli_fname: cstring,
dli_fbase: rawptr,
dli_sname: cstring,
dli_saddr: rawptr,
}SourceFrame
Frame :: uintptrSourceFrame_Location
Frame_Location :: struct {
loc: runtime.Source_Code_Location,
allocator: runtime.Allocator,
}Sourcebacktrace_error_callback
backtrace_error_callback :: proc "c" (data: rawptr, msg: cstring, errnum: c.int)Sourcebacktrace_full_callback
backtrace_full_callback :: proc "c" (data: rawptr, pc: uintptr, filename: cstring, lineno: c.int, function: cstring) -> c.intSourcebacktrace_simple_callback
backtrace_simple_callback :: proc "c" (data: rawptr, pc: uintptr) -> c.intSourcebacktrace_state
backtrace_state :: struct {}Sourcebacktrace_syminfo_callback
backtrace_syminfo_callback :: proc "c" (data: rawptr, pc: uintptr, symname: cstring, symval: uintptr, symsize: uintptr)SourceProcedures
8_format_hex
_format_hex :: proc(buf: []u8, val: uintptr, allocator: runtime.Allocator) -> (int)Source_format_missing_proc
_format_missing_proc :: proc(addr: uintptr, allocator: runtime.Allocator) -> (string)Sourcedelete_frame_location
delete_frame_location :: proc(fl: Frame_Location) -> (runtime.Allocator_Error)Sourcedestroy
destroy :: proc(ctx: ^Context) -> (bool)Sourceframes
frames :: proc(ctx: ^Context, skip: uint, frames_buffer: []Frame) -> ([]Frame)Sourcein_resolve
in_resolve :: proc(ctx: ^Context) -> (bool)Sourceinit
init :: proc(ctx: ^Context) -> (bool)Sourceresolve
resolve :: proc(ctx: ^Context, frame: Frame, allocator: runtime.Allocator) -> (result: Frame_Location)Source