backtrace.h 652 Bytes
Newer Older
1
/* Copyright (c) 2013-2017, The Tor Project, Inc. */
Nick Mathewson's avatar
Nick Mathewson committed
2
3
4
5
6
/* See LICENSE for licensing information */

#ifndef TOR_BACKTRACE_H
#define TOR_BACKTRACE_H

7
8
#include "orconfig.h"

9
void log_backtrace(int severity, int domain, const char *msg);
10
int configure_backtrace_handler(const char *tor_version);
Nick Mathewson's avatar
Nick Mathewson committed
11
12
void clean_up_backtrace_handler(void);

13
#ifdef EXPOSE_CLEAN_BACKTRACE
14
15
#if defined(HAVE_EXECINFO_H) && defined(HAVE_BACKTRACE) && \
  defined(HAVE_BACKTRACE_SYMBOLS_FD) && defined(HAVE_SIGACTION)
16
void clean_backtrace(void **stack, size_t depth, const ucontext_t *ctx);
17
#endif
18
#endif /* defined(EXPOSE_CLEAN_BACKTRACE) */
19

20
#endif /* !defined(TOR_BACKTRACE_H) */
Nick Mathewson's avatar
Nick Mathewson committed
21