FreeRDP
backtrace.h File Reference
#include <sys/types.h>
#include <corkscrew/ptrace.h>
#include <corkscrew/map_info.h>
#include <corkscrew/symbol_table.h>

Data Structures

struct  backtrace_frame_t
 
struct  backtrace_symbol_t
 

Enumerations

enum  { MAX_BACKTRACE_LINE_LENGTH = 800 }
 

Functions

ssize_t unwind_backtrace (backtrace_frame_t *backtrace, size_t ignore_depth, size_t max_depth)
 
ssize_t unwind_backtrace_thread (pid_t tid, backtrace_frame_t *backtrace, size_t ignore_depth, size_t max_depth)
 
ssize_t unwind_backtrace_ptrace (pid_t tid, const ptrace_context_t *context, backtrace_frame_t *backtrace, size_t ignore_depth, size_t max_depth)
 
void get_backtrace_symbols (const backtrace_frame_t *backtrace, size_t frames, backtrace_symbol_t *backtrace_symbols)
 
void get_backtrace_symbols_ptrace (const ptrace_context_t *context, const backtrace_frame_t *backtrace, size_t frames, backtrace_symbol_t *backtrace_symbols)
 
void free_backtrace_symbols (backtrace_symbol_t *backtrace_symbols, size_t frames)
 
void format_backtrace_line (unsigned frameNumber, const backtrace_frame_t *frame, const backtrace_symbol_t *symbol, char *buffer, size_t bufferSize)
 

Enumeration Type Documentation

anonymous enum
Enumerator
MAX_BACKTRACE_LINE_LENGTH 

Function Documentation

void format_backtrace_line ( unsigned  frameNumber,
const backtrace_frame_t frame,
const backtrace_symbol_t symbol,
char *  buffer,
size_t  bufferSize 
)

Formats a line from a backtrace as a zero-terminated string into the specified buffer.

void free_backtrace_symbols ( backtrace_symbol_t backtrace_symbols,
size_t  frames 
)
void get_backtrace_symbols ( const backtrace_frame_t backtrace,
size_t  frames,
backtrace_symbol_t backtrace_symbols 
)
void get_backtrace_symbols_ptrace ( const ptrace_context_t context,
const backtrace_frame_t backtrace,
size_t  frames,
backtrace_symbol_t backtrace_symbols 
)
ssize_t unwind_backtrace ( backtrace_frame_t backtrace,
size_t  ignore_depth,
size_t  max_depth 
)
ssize_t unwind_backtrace_ptrace ( pid_t  tid,
const ptrace_context_t context,
backtrace_frame_t backtrace,
size_t  ignore_depth,
size_t  max_depth 
)
ssize_t unwind_backtrace_thread ( pid_t  tid,
backtrace_frame_t backtrace,
size_t  ignore_depth,
size_t  max_depth 
)