backtrace.h 442 B

123456789101112131415161718
  1. /* Copyright (c) 2013, 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. void clean_backtrace(void **stack, int depth, const ucontext_t *ctx);
  11. #endif
  12. #endif