backtrace.h 582 B

123456789101112131415161718192021
  1. /* Copyright (c) 2013-2017, The Tor Project, Inc. */
  2. /* See LICENSE for licensing information */
  3. #ifndef TOR_BACKTRACE_H
  4. #define TOR_BACKTRACE_H
  5. #include "orconfig.h"
  6. void log_backtrace(int severity, int domain, const char *msg);
  7. int configure_backtrace_handler(const char *tor_version);
  8. void clean_up_backtrace_handler(void);
  9. #ifdef EXPOSE_CLEAN_BACKTRACE
  10. #if defined(HAVE_EXECINFO_H) && defined(HAVE_BACKTRACE) && \
  11. defined(HAVE_BACKTRACE_SYMBOLS_FD) && defined(HAVE_SIGACTION)
  12. void clean_backtrace(void **stack, size_t depth, const ucontext_t *ctx);
  13. #endif
  14. #endif
  15. #endif