blob: c4b67a52abc9c535524b7eecd8b71d0dbb350965 [file] [log] [blame]
#include <zebra.h>
#include "log.h"
void
debug_print_trace (int signal)
{
void *array[10];
size_t size;
char **strings;
size_t i;
size = backtrace (array, 10);
strings = backtrace_symbols (array, size);
printf ("Obtained %zd stack frames.\n", size);
for (i = 0; i < size; i++)
printf ("%s\n", strings[i]);
free (strings);
exit(1);
}