eina_btlog: add Mac OS X support for backtrace
authorJean Guyomarc'h <jean@guyomarch.bzh>
Sat, 28 May 2016 16:26:10 +0000 (18:26 +0200)
committerJean Guyomarc'h <jean@guyomarch.bzh>
Sat, 28 May 2016 17:19:02 +0000 (19:19 +0200)
commit0d8e054556de4ef8a6d77db5fcb42e0fb8b837f2
tree51cf9c851a01628c452636d7b51ca27b830bbe3d
parent0bb75b5fb6b2f9ae294c9c615028b420c842aa68
eina_btlog: add Mac OS X support for backtrace

This was actually difficult...
Mac OS X can use addr2line (sometimes called gaddr2line in
function of the package managers). However, addr2line does
NOT handle specific cases.

It was therefore necessary to use Mac OS X' own tool: atos,
which gracefully handles all backtraces, including the one
containing objective-c messages or fat archives.

eina_btlog now tests different utilities one by one, and
determines whether it is supported or not.

Fixes T3711
src/bin/eina/eina_btlog.c