aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-08-30 04:13:15 +0800
committerChristian Persch <chpe@src.gnome.org>2005-08-30 04:13:15 +0800
commit16d8cf513a954ab3bfe469d1cf94340e25ebfc98 (patch)
treedec0a1914c799128a24a7d1bf3f7b303077154ec /lib
parent0b1325fa2bed821343f751230689872f5acd05b0 (diff)
downloadgsoc2013-epiphany-16d8cf513a954ab3bfe469d1cf94340e25ebfc98.tar
gsoc2013-epiphany-16d8cf513a954ab3bfe469d1cf94340e25ebfc98.tar.gz
gsoc2013-epiphany-16d8cf513a954ab3bfe469d1cf94340e25ebfc98.tar.bz2
gsoc2013-epiphany-16d8cf513a954ab3bfe469d1cf94340e25ebfc98.tar.lz
gsoc2013-epiphany-16d8cf513a954ab3bfe469d1cf94340e25ebfc98.tar.xz
gsoc2013-epiphany-16d8cf513a954ab3bfe469d1cf94340e25ebfc98.tar.zst
gsoc2013-epiphany-16d8cf513a954ab3bfe469d1cf94340e25ebfc98.zip
Check for execinfo.h. Fixes bug #314776.
2005-08-29 Christian Persch <chpe@cvs.gnome.org> * configure.ac: * lib/ephy-debug.c: (trap_handler): Check for execinfo.h. Fixes bug #314776.
Diffstat (limited to 'lib')
-rw-r--r--lib/ephy-debug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/ephy-debug.c b/lib/ephy-debug.c
index d999e7b3a..a8c35902d 100644
--- a/lib/ephy-debug.c
+++ b/lib/ephy-debug.c
@@ -109,11 +109,15 @@ trap_handler (const char *log_domain,
}
else if (strcmp (ephy_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 /* HAVE_EXECINFO_H */
}
else if (strcmp (ephy_debug_break, "trap") == 0)
{