Macros | Typedefs | Functions
backtrace.h File Reference
#include "orconfig.h"
#include "lib/cc/compat_compiler.h"

Go to the source code of this file.


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


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)


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.