tor  0.4.2.0-alpha-dev
Macros | Typedefs | Functions
backtrace.h File Reference
#include "orconfig.h"
#include "lib/cc/compat_compiler.h"

Go to the source code of this file.

Macros

#define log_backtrace(sev, dom, msg)   log_backtrace_impl((sev), (dom), (msg), tor_log)
 

Typedefs

typedef void(* tor_log_fn) (int, unsigned, const char *fmt,...) CHECK_PRINTF(3
 
typedef void(*) voi log_backtrace_impl) (int severity, int domain, const char *msg, tor_log_fn logger)
 

Functions

int configure_backtrace_handler (const char *tor_version)
 
void clean_up_backtrace_handler (void)
 
void dump_stack_symbols_to_error_fds (void)
 

Detailed Description

Header for backtrace.c.

Definition in file backtrace.h.

Function Documentation

◆ clean_up_backtrace_handler()

void clean_up_backtrace_handler ( void  )

Perform end-of-process cleanup for code that generates error messages on crashes.

Definition at line 283 of file backtrace.c.

◆ configure_backtrace_handler()

int configure_backtrace_handler ( const char *  tor_version)

Set up code to handle generating error messages on crashes.

Definition at line 269 of file backtrace.c.