#core/backtrace
Xu 0.16.0 API
导入方式: #core/backtrace
公开 API: 5 函数, 0 方法, 0 类型, 0 常量, 0 方法集
标准库包 `#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
用途
执行 capture from x64 arm64 操作。
参数
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)
返回值
int — 该类型的值
capture_from_rv64
pub fn capture_from_rv64(start_fp u64, stack_lo u64, stack_hi u64, out *raw u64, max_frames int) int
用途
执行 capture from rv64 操作。
参数
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)
返回值
int — 该类型的值
capture_from
pub fn capture_from(start_fp u64, stack_lo u64, stack_hi u64, out *raw u64, max_frames int) int
用途
执行 capture from 操作。
参数
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)
返回值
int — 该类型的值
capture_current
pub fn capture_current(stack_lo u64, stack_hi u64, out *raw u64, max_frames int) int
用途
执行 capture current 操作。
参数
stack_lo u64- stack_lo(u64)
stack_hi u64- stack_hi(u64)
out *raw u64- out(*raw u64)
max_frames int- max_frames(int)
返回值
int — 该类型的值
resolve_frame
pub fn resolve_frame(img &elf.Elf64Image, pc u64, out_sym_addr *raw u64) *raw u8
用途
执行 resolve frame 操作。
参数
img &elf.Elf64Image- img(只读借用,调用方仍持有原值;类型 &elf.Elf64Image)
pc u64- pc(u64)
out_sym_addr *raw u64- out_sym_addr(*raw u64)
返回值
*raw u8 — 该类型的值