gallium/util: Android backtrace support
authorStefan Schake <stschake@gmail.com>
Sun, 15 Apr 2018 22:45:17 +0000 (00:45 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Fri, 20 Apr 2018 15:49:49 +0000 (18:49 +0300)
commitff904978a1d299a36b58781df47351729a8e40b6
tree287c0a9b29bcc33ba456edb78a6b34bc5f231810
parent2abd4f4b497d8a37c01df5d1466703186579afec
gallium/util: Android backtrace support

We can't use any of the existing implementations in u_debug_stack.
Android technically has libunwind, but it's been modified to the point
where it no longer compiles with the Mesa usage. The library is also
not meant to be referenced by vendor libraries. The officially sanctioned
way of obtaining backtraces is through the Android own libbacktrace, a
C++ library. Access it through a separate C++ source file on Android only.

Signed-off-by: Stefan Schake <stschake@gmail.com>
Acked-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/gallium/auxiliary/Android.mk
src/gallium/auxiliary/util/u_debug_stack_android.cpp [new file with mode: 0644]
src/gallium/targets/dri/Android.mk