[Sanitizer] Add rudimentary support for using libbacktrace in symbolizer.
commitf08d541bb2de3a09a5f1b0f647d62aed6821bcc8
authorAlexey Samsonov <samsonov@google.com>
Wed, 27 Nov 2013 11:46:58 +0000 (27 11:46 +0000)
committerAlexey Samsonov <samsonov@google.com>
Wed, 27 Nov 2013 11:46:58 +0000 (27 11:46 +0000)
tree56893bf91dc75765f3c44f1f047d8e13b6cc1468
parent6609d16e7c32ff6e78dacf6bc8fa47f23881fa51
[Sanitizer] Add rudimentary support for using libbacktrace in symbolizer.

More steps are needed to actually make it usable:
* sanitizer runtimes should be compiled with -DSANITIZER_LIBBACKTRACE.
* libbacktrace headers should be installed.
* user has to manually link in libbacktrace.a into the executable.

We can easily solve the first two problems in the build system, but
detecting/linking libbacktrace to all the tests we have and end-user programs
is more challenging (and will unlikely work w/o Driver support).

Based on the patch by Jakub Jelinek!

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@195837 91177308-0d34-0410-b5e6-96231b3b80d8
lib/sanitizer_common/CMakeLists.txt
lib/sanitizer_common/sanitizer_symbolizer_libbacktrace.cc [new file with mode: 0644]
lib/sanitizer_common/sanitizer_symbolizer_libbacktrace.h [new file with mode: 0644]
lib/sanitizer_common/sanitizer_symbolizer_posix_libcdep.cc