view src/lib/backtrace-string.h @ 4840:a0a38a306c17 HEAD

Since getting core dumps can be sometimes difficult, if we now do abort() ourself, we first log the backtrace. This works at least with Linux and Solaris.
author Timo Sirainen <tss@iki.fi>
date Sun, 19 Nov 2006 15:30:38 +0200
parents
children e4eb71ae8e96
line wrap: on
line source

#ifndef __BACKTRACE_STRING_H
#define __BACKTRACE_STRING_H

/* Returns 0 if ok, -1 if failure. */
int backtrace_append(string_t *str);
int backtrace_get(const char **backtrace_r);

#endif