diff options
author | Nick Mathewson <nickm@torproject.org> | 2013-07-19 14:09:58 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2013-11-18 10:43:14 -0500 |
commit | 063bea58bcc1c27864a0351bba07254855903377 (patch) | |
tree | 8a0f0ea303fbbc4b86d31c54dd9da761f658f4e2 /src/common/backtrace.h | |
parent | f6d8bc9389db72dc654560d0f86fd3edd3b14934 (diff) | |
download | tor-063bea58bcc1c27864a0351bba07254855903377.tar.gz tor-063bea58bcc1c27864a0351bba07254855903377.zip |
Basic backtrace ability
On platforms with the backtrace/backtrace_symbols_fd interface, Tor
can now dump stack traces on assertion failure. By default, I log
them to DataDir/stack_dump and to stderr.
Diffstat (limited to 'src/common/backtrace.h')
-rw-r--r-- | src/common/backtrace.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/common/backtrace.h b/src/common/backtrace.h new file mode 100644 index 0000000000..bb2396080a --- /dev/null +++ b/src/common/backtrace.h @@ -0,0 +1,12 @@ +/* Copyright (c) 2013, The Tor Project, Inc. */ +/* See LICENSE for licensing information */ + +#ifndef TOR_BACKTRACE_H +#define TOR_BACKTRACE_H + +void dump_backtrace(const char *msg); +int configure_backtrace_handler(const char *filename, const char *tor_version); +void clean_up_backtrace_handler(void); + +#endif + |