backtrace.h 579 Bytes
Newer Older
1
/* Copyright (c) 2013-2014, 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
17
void clean_backtrace(void **stack, int depth, const ucontext_t *ctx);
#endif
18
#endif
19

Nick Mathewson's avatar
Nick Mathewson committed
20
21
#endif