mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2025-02-26 23:52:30 +01:00
This involves some duplicate code between backtrace.c and sandbox.c, but I don't see a way around it: calling more functions would mean adding more steps to our call stack, and running clean_backtrace() against the wrong point on the stack.
18 lines
442 B
C
18 lines
442 B
C
/* Copyright (c) 2013, The Tor Project, Inc. */
|
|
/* See LICENSE for licensing information */
|
|
|
|
#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
|
|
void clean_backtrace(void **stack, int depth, const ucontext_t *ctx);
|
|
#endif
|
|
|
|
#endif
|
|
|