#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
+#ifdef HAVE_EXECINFO_H
#include <execinfo.h>
+#endif
static GHashTable *ev_profilers_hash = NULL;
static const char *ev_profile_modules = NULL;
{
if (strcmp (ev_debug_break, "stack") == 0)
{
+#ifdef HAVE_EXECINFO_H
void *array[MAX_DEPTH];
size_t size;
size = backtrace (array, MAX_DEPTH);
backtrace_symbols_fd (array, size, 2);
+#else
+ g_on_error_stack_trace (g_get_prgname ());
+#endif
}
else if (strcmp (ev_debug_break, "trap") == 0)
{