mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-20 18:22:09 +01:00
Reseolve DOCDOC and XXXXs in backtrace.c
This commit is contained in:
parent
56e3f056e9
commit
c3ea946839
@ -132,7 +132,6 @@ crash_handler(int sig, siginfo_t *si, void *ctx_)
|
|||||||
static int
|
static int
|
||||||
install_bt_handler(void)
|
install_bt_handler(void)
|
||||||
{
|
{
|
||||||
/*XXXX make this idempotent */
|
|
||||||
int trap_signals[] = { SIGSEGV, SIGILL, SIGFPE, SIGBUS, SIGSYS,
|
int trap_signals[] = { SIGSEGV, SIGILL, SIGFPE, SIGBUS, SIGSYS,
|
||||||
SIGIO, -1 };
|
SIGIO, -1 };
|
||||||
int i, rv=0;
|
int i, rv=0;
|
||||||
@ -156,33 +155,30 @@ install_bt_handler(void)
|
|||||||
static void
|
static void
|
||||||
remove_bt_handler(void)
|
remove_bt_handler(void)
|
||||||
{
|
{
|
||||||
/*XXXX writeme*/
|
/* We don't need to actually free anything at exit here. */
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef NO_BACKTRACE_IMPL
|
#ifdef NO_BACKTRACE_IMPL
|
||||||
/**DOCDOC */
|
|
||||||
void
|
void
|
||||||
log_backtrace(int severity, int domain, const char *msg)
|
log_backtrace(int severity, int domain, const char *msg)
|
||||||
{
|
{
|
||||||
tor_log(severity, domain, "%s. (Stack trace not available)", msg);
|
tor_log(severity, domain, "%s. (Stack trace not available)", msg);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**DOCDOC*/
|
|
||||||
static int
|
static int
|
||||||
install_bt_handler(void)
|
install_bt_handler(void)
|
||||||
{
|
{
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**DOCDOC*/
|
|
||||||
static void
|
static void
|
||||||
remove_bt_handler(void)
|
remove_bt_handler(void)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/**DOCDOC*/
|
/** Set up code to handle generating error messages on crashes. */
|
||||||
int
|
int
|
||||||
configure_backtrace_handler(const char *tor_version)
|
configure_backtrace_handler(const char *tor_version)
|
||||||
{
|
{
|
||||||
@ -194,7 +190,8 @@ configure_backtrace_handler(const char *tor_version)
|
|||||||
return install_bt_handler();
|
return install_bt_handler();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**DOCDOC*/
|
/** Perform end-of-process cleanup for code that generates error messages on
|
||||||
|
* crashes. */
|
||||||
void
|
void
|
||||||
clean_up_backtrace_handler(void)
|
clean_up_backtrace_handler(void)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user