#core/backtrace
Xu 0.16.0 API
import: #core/backtrace
counts: 5 functions, 0 methods, 0 types, 0 constants, 0 method sets
Standard library package `#core/backtrace`.
capture_from_x64_arm64
pub fn capture_from_x64_arm64(start_fp u64, stack_lo u64, stack_hi u64, out *raw u64, max_frames int) int
Purpose
Capture from x64 arm64.
Parameters
start_fp u64- start_fp (u64)
stack_lo u64- stack_lo (u64)
stack_hi u64- stack_hi (u64)
out *raw u64- out (*raw u64)
max_frames int- max_frames (int)
Returns
int — a value of this type
capture_from_rv64
pub fn capture_from_rv64(start_fp u64, stack_lo u64, stack_hi u64, out *raw u64, max_frames int) int
Purpose
Capture from rv64.
Parameters
start_fp u64- start_fp (u64)
stack_lo u64- stack_lo (u64)
stack_hi u64- stack_hi (u64)
out *raw u64- out (*raw u64)
max_frames int- max_frames (int)
Returns
int — a value of this type
capture_from
pub fn capture_from(start_fp u64, stack_lo u64, stack_hi u64, out *raw u64, max_frames int) int
Purpose
Capture from.
Parameters
start_fp u64- start_fp (u64)
stack_lo u64- stack_lo (u64)
stack_hi u64- stack_hi (u64)
out *raw u64- out (*raw u64)
max_frames int- max_frames (int)
Returns
int — a value of this type
capture_current
pub fn capture_current(stack_lo u64, stack_hi u64, out *raw u64, max_frames int) int
Purpose
Capture current.
Parameters
stack_lo u64- stack_lo (u64)
stack_hi u64- stack_hi (u64)
out *raw u64- out (*raw u64)
max_frames int- max_frames (int)
Returns
int — a value of this type
resolve_frame
pub fn resolve_frame(img &elf.Elf64Image, pc u64, out_sym_addr *raw u64) *raw u8
Purpose
Resolve frame.
Parameters
img &elf.Elf64Image- img (read-only borrow; caller keeps the original; type &elf.Elf64Image)
pc u64- pc (u64)
out_sym_addr *raw u64- out_sym_addr (*raw u64)
Returns
*raw u8 — a value of this type