FreeRDP
backtrace.h File Reference
#include <sys/types.h>
#include <corkscrew/ptrace.h>
#include <corkscrew/map_info.h>
#include <corkscrew/symbol_table.h>
This graph shows which files directly or indirectly include this file:

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

anonymous enum
Enumerator
MAX_BACKTRACE_LINE_LENGTH 

Function Documentation

◆ format_backtrace_line()

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.

◆ free_backtrace_symbols()

void free_backtrace_symbols ( backtrace_symbol_t backtrace_symbols,
size_t  frames 
)

◆ get_backtrace_symbols()

void get_backtrace_symbols ( const backtrace_frame_t backtrace,
size_t  frames,
backtrace_symbol_t backtrace_symbols 
)

◆ get_backtrace_symbols_ptrace()

void get_backtrace_symbols_ptrace ( const ptrace_context_t context,
const backtrace_frame_t backtrace,
size_t  frames,
backtrace_symbol_t backtrace_symbols 
)

◆ unwind_backtrace()

ssize_t unwind_backtrace ( backtrace_frame_t backtrace,
size_t  ignore_depth,
size_t  max_depth 
)

◆ unwind_backtrace_ptrace()

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 
)

◆ unwind_backtrace_thread()

ssize_t unwind_backtrace_thread ( pid_t  tid,
backtrace_frame_t backtrace,
size_t  ignore_depth,
size_t  max_depth 
)