1#ifndef __LIBDRAGON_BACKTRACE_INTERNAL_H
2#define __LIBDRAGON_BACKTRACE_INTERNAL_H
7 BT_FUNCTION_FRAMEPOINTER,
23int __backtrace_from(
void **buffer,
int size, uint32_t *pc, uint32_t *sp, uint32_t *fp, uint32_t *exception_ra);
bool __bt_analyze_func(bt_func_t *func, uint32_t *ptr, uint32_t func_start, bool from_exception)
Analyze a function to find out its stack frame layout and properties (useful for backtracing).
Definition backtrace.c:417
int __backtrace_from(void **buffer, int size, uint32_t *pc, uint32_t *sp, uint32_t *fp, uint32_t *exception_ra)
Like backtrace, but start from an arbitrary context. Useful for backtracing a thread.
Definition backtrace.c:649
char * __symbolize(void *vaddr, char *buf, int size)
Return the symbol associated to a given address.
Definition backtrace.c:341
Description of a function for the purpose of backtracing (filled by __bt_analyze_func)
Definition backtrace_internal.h:13
int stack_size
Size of the stack frame.
Definition backtrace_internal.h:15
int ra_offset
Offset of the return address from the top of the stack frame.
Definition backtrace_internal.h:16
int fp_offset
Offset of the saved fp from the top of the stack frame; this is != 0 only if the function modifies fp...
Definition backtrace_internal.h:17
bt_func_type type
Type of the function.
Definition backtrace_internal.h:14