28#ifndef __LIBDRAGON_BACKTRACE_H
29#define __LIBDRAGON_BACKTRACE_H
const char * source_file
Name of the source file (if known, or "???" otherwise)
Definition backtrace.h:47
const char * func
Name of the function (this should always be present)
Definition backtrace.h:44
int source_line
Line number in the source file (if known, or 0 otherwise)
Definition backtrace.h:48
bool is_inline
True if this frame refers to an inlined function.
Definition backtrace.h:50
uint32_t func_offset
Byte offset of the address within the function.
Definition backtrace.h:45
uint32_t addr
PC address of the frame (MIPS virtual address)
Definition backtrace.h:42
void backtrace_frame_print_compact(backtrace_frame_t *frame, FILE *out, int width)
Print a single frame of a backtrace, in a compact format.
Definition backtrace.c:707
bool backtrace_symbols_cb(void **buffer, int size, uint32_t flags, void(*cb)(void *, backtrace_frame_t *), void *cb_arg)
Symbolize the buffer returned by backtrace, calling a callback for each frame.
Definition backtrace.c:626
int backtrace(void **buffer, int size)
Walk the stack and return the current call stack.
Definition backtrace.c:595
void backtrace_frame_print(backtrace_frame_t *frame, FILE *out)
Print a single frame of a backtrace.
Definition backtrace.c:699
char ** backtrace_symbols(void **buffer, int size)
Translate the buffer returned by backtrace into a list of strings.
Definition backtrace.c:676
A stack frame, part of a backtrace.
Definition backtrace.h:41