29#ifndef __LIBDRAGON_BACKTRACE_H
30#define __LIBDRAGON_BACKTRACE_H
const char * source_file
Name of the source file (if known, or "???" otherwise)
Definition backtrace.h:48
const char * func
Name of the function (this should always be present)
Definition backtrace.h:45
int source_line
Line number in the source file (if known, or 0 otherwise)
Definition backtrace.h:49
bool is_inline
True if this frame refers to an inlined function.
Definition backtrace.h:51
uint32_t func_offset
Byte offset of the address within the function.
Definition backtrace.h:46
uint32_t addr
PC address of the frame (MIPS virtual address)
Definition backtrace.h:43
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:764
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:684
int backtrace(void **buffer, int size)
Walk the stack and return the current call stack.
Definition backtrace.c:622
void backtrace_frame_print(backtrace_frame_t *frame, FILE *out)
Print a single frame of a backtrace.
Definition backtrace.c:756
char ** backtrace_symbols(void **buffer, int size)
Translate the buffer returned by backtrace into a list of strings.
Definition backtrace.c:733
A stack frame, part of a backtrace.
Definition backtrace.h:42