compositor: Use libunwind if available for better backtraces
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Mon, 18 Feb 2013 18:27:22 +0000 (13:27 -0500)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 18 Feb 2013 20:29:17 +0000 (15:29 -0500)
commit554a0da74a3f6fc945503a3eb1bfcc9038441b39
treede7502c8e6a6628ab2712cc30d028c0d08a5c987
parent1cc9e08d2fbd59e34cf5009acd5067a6b171c20a
compositor: Use libunwind if available for better backtraces

libunwind has a dwarf parser and automatically queries the dlinfo
for location of dlopened modules.  The resulting backtrace is much
better and includes stack frames in dynamically loaded modules.

krh: Originally submitted for Xorg, adapted for weston:

  http://lists.x.org/archives/xorg-devel/2013-February/035493.html

Note this require libunwind at least 1.1 to get the pkg-config files.

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
configure.ac
src/Makefile.am
src/compositor.c