summaryrefslogtreecommitdiff
path: root/src/common/backtrace.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/backtrace.h')
-rw-r--r--src/common/backtrace.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/common/backtrace.h b/src/common/backtrace.h
index 765436fee3..1f4d73339f 100644
--- a/src/common/backtrace.h
+++ b/src/common/backtrace.h
@@ -4,9 +4,18 @@
#ifndef TOR_BACKTRACE_H
#define TOR_BACKTRACE_H
+#include "orconfig.h"
+
void log_backtrace(int severity, int domain, const char *msg);
int configure_backtrace_handler(const char *tor_version);
void clean_up_backtrace_handler(void);
+#ifdef EXPOSE_CLEAN_BACKTRACE
+#if defined(HAVE_EXECINFO_H) && defined(HAVE_BACKTRACE) && \
+ defined(HAVE_BACKTRACE_SYMBOLS_FD) && defined(HAVE_SIGACTION)
+void clean_backtrace(void **stack, int depth, const ucontext_t *ctx);
+#endif
+#endif
+
#endif