aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-09 09:56:12 -0300
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2016-08-29 14:58:34 -0300
commit39c8f8f535bc6188263638ba808f35f1d6191d4a (patch)
tree85772f993fe78362d2c5f31fe211111c03f8bdb2 /configure.ac
parent9b682f7d4508d10a3ee074c2e192f651a2d183ce (diff)
dvb-dev-remote: do a call stack dump on msg format errors
When debugging troubles on sending/receiving messages, it is important to identify what caller function caused the error. So, add a logic to do a stack dump. With this patch such errors will be shown as: DEBUG buffer to short for int32_t DEBUG Stack: DEBUG /devel/v4l/v4l-utils/lib/libdvbv5/.libs/libdvbv5.so.0(stack_dump+0x22) [0x7f0636756cf2] DEBUG /devel/v4l/v4l-utils/lib/libdvbv5/.libs/libdvbv5.so.0(+0x2ba84) [0x7f0636757a84] DEBUG /devel/v4l/v4l-utils/lib/libdvbv5/.libs/libdvbv5.so.0(dvb_remote_fe_get_parms+0x311) [0x7f06367580f1] DEBUG /devel/v4l/v4l-utils/lib/libdvbv5/.libs/libdvbv5.so.0(+0x2c2ed) [0x7f06367582ed] DEBUG /devel/v4l/v4l-utils/utils/dvb/.libs/lt-dvbv5-zap() [0x401eb9] DEBUG /lib64/libc.so.6(__libc_start_main+0xf1) [0x7f0635e78731] DEBUG /devel/v4l/v4l-utils/utils/dvb/.libs/lt-dvbv5-zap() [0x403249] Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac5
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index 5e1c9962..0d416b09 100644
--- a/configure.ac
+++ b/configure.ac
@@ -406,6 +406,11 @@ AC_ARG_ENABLE(gconv,
esac]
)
+# Check if backtrace functions are defined
+AC_SEARCH_LIBS([backtrace], [execinfo], [
+ AC_DEFINE(HAVE_BACKTRACE, [1], [glibc has functions to provide stack backtrace])
+])
+
AM_CONDITIONAL([WITH_LIBDVBV5], [test x$enable_libdvbv5 != xno -a x$have_libudev = xyes])
AM_CONDITIONAL([WITH_DVBV5_REMOTE], [test x$enable_libdvbv5 != xno -a x$have_libudev = xyes -a x$have_pthread = xyes])

Privacy Policy