Debugging
include/dbg.h View source View on GitHubFunctions
Section titled “Functions”debug_print_registers
Section titled “debug_print_registers”void debug_print_registers(void) source debug_print_stack
Section titled “debug_print_stack”void debug_print_stack(void) source debug_print_memory
Section titled “debug_print_memory”void debug_print_memory(void *addr, size_t size) source debug_print_stack_from
Section titled “debug_print_stack_from”void debug_print_stack_from(uint64_t *start, size_t max_scan) source stack_unwind
Section titled “stack_unwind”size_t stack_unwind(uint64_t frame, uint64_t *entries, size_t max) source debug_print_stack_trace
Section titled “debug_print_stack_trace”void debug_print_stack_trace(const uint64_t *entries, size_t nr) source debug_symbolize
Section titled “debug_symbolize”const char * debug_symbolize(uint64_t addr, uint64_t *out_off) source debug_line_for
Section titled “debug_line_for”const char * debug_line_for(uint64_t addr, uint32_t *out_line) source debug_syms_present
Section titled “debug_syms_present”bool debug_syms_present(void) source Macros
Section titled “Macros”STACK_TRACE_MAX_DEPTH
Section titled “STACK_TRACE_MAX_DEPTH”#define STACK_TRACE_MAX_DEPTH ((size_t) 64) source stack_trace_save
Section titled “stack_trace_save”#define stack_trace_save(entries, max) source Unwinds from the caller’s own frame
Expansion
#define stack_trace_save(entries, max) \
stack_unwind((uint64_t) ci_frame_address(0), (entries), (max))