4 #ifndef TOR_BACKTRACE_H
5 #define TOR_BACKTRACE_H
26 void dump_stack_symbols_to_error_fds(
void);
29 #define log_backtrace(sev, dom, msg) \
30 log_backtrace_impl((sev), (dom), (msg), tor_log)
32 #ifdef BACKTRACE_PRIVATE
33 #if defined(HAVE_EXECINFO_H) && defined(HAVE_BACKTRACE) && \
34 defined(HAVE_BACKTRACE_SYMBOLS_FD) && defined(HAVE_SIGACTION)
35 void clean_backtrace(
void **stack,
size_t depth,
const ucontext_t *ctx);
int configure_backtrace_handler(const char *tor_version)
const char * get_tor_backtrace_version(void)
void clean_up_backtrace_handler(void)
Utility macros to handle different features and behavior in different compilers.
Global definition for types used by logging systems.
uint64_t log_domain_mask_t
Integer definitions used throughout Tor.