aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2005-08-30 04:12:57 +0800
committerChristian Persch <chpe@src.gnome.org>2005-08-30 04:12:57 +0800
commit8098f50e8ca2d5497d2c225b36bc4224cb18e116 (patch)
tree5405ee3a3fd3b77809a7d3130c1d9c724fa6eb4a
parent2ea4ab2b65b6619cb1197bcd7a240e5b75b15935 (diff)
downloadgsoc2013-epiphany-8098f50e8ca2d5497d2c225b36bc4224cb18e116.tar
gsoc2013-epiphany-8098f50e8ca2d5497d2c225b36bc4224cb18e116.tar.gz
gsoc2013-epiphany-8098f50e8ca2d5497d2c225b36bc4224cb18e116.tar.bz2
gsoc2013-epiphany-8098f50e8ca2d5497d2c225b36bc4224cb18e116.tar.lz
gsoc2013-epiphany-8098f50e8ca2d5497d2c225b36bc4224cb18e116.tar.xz
gsoc2013-epiphany-8098f50e8ca2d5497d2c225b36bc4224cb18e116.tar.zst
gsoc2013-epiphany-8098f50e8ca2d5497d2c225b36bc4224cb18e116.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.
-rw-r--r--ChangeLog7
-rw-r--r--configure.ac3
-rw-r--r--lib/ephy-debug.c4
3 files changed, 14 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index aa79682e9..1220ed7e3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-08-29 Christian Persch <chpe@cvs.gnome.org>
+
+ * configure.ac:
+ * lib/ephy-debug.c: (trap_handler):
+
+ Check for execinfo.h. Fixes bug #314776.
+
2005-08-28 Christian Persch <chpe@cvs.gnome.org>
* configure.ac:
diff --git a/configure.ac b/configure.ac
index d6d54fc83..77a3aadf6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -133,6 +133,9 @@ dnl ******************
AC_CHECK_FUNCS([mkdtemp])
+dnl for backtrace()
+AC_CHECK_HEADERS([execinfo.h])
+
dnl Check for -Wdeclaration-after-statement (since gcc 3.4)
if test "x$enable_maintainer_mode" = "xyes"; then
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)
{