19 #ifndef _CORKSCREW_BACKTRACE_H
20 #define _CORKSCREW_BACKTRACE_H
27 #include <sys/types.h>
28 #include <corkscrew/ptrace.h>
29 #include <corkscrew/map_info.h>
30 #include <corkscrew/symbol_table.h>
37 uintptr_t absolute_pc;
47 uintptr_t relative_pc;
49 uintptr_t relative_symbol_addr;
61 ssize_t unwind_backtrace(
backtrace_frame_t* backtrace,
size_t ignore_depth,
size_t max_depth);
70 ssize_t unwind_backtrace_thread(pid_t tid,
backtrace_frame_t* backtrace,
size_t ignore_depth,
107 MAX_BACKTRACE_LINE_LENGTH = 800,