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>
Tue, 19 Feb 2013 01:00:42 +0000 (20:00 -0500)
commit25846678a5b8d1637d9458e2c8ad8261d215b10f
tree32ecff6f31a62a792e9e1b5f22da8b83fcaa91ff
parent5c936adb8dbc91320891faca6f194d058e487883
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>
Conflicts:
configure.ac
configure.ac
src/Makefile.am
src/compositor.c