summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_symbolizer_libbacktrace.h
AgeCommit message (Collapse)Author
2015-10-07Provide missing Internal{Alloc, Free} declarations for libbacktrace symbolizer.Alexey Samsonov
Summary: Since r223145 we don't include sanitizer_allocator_internal.h into sanitizer_symbolizer.h, so we can have undefined reference to Internal{Alloc, Free} stuff into sanitizer_symbolizer_libbacktrace.cc under SANITIZER_CP_DEMANGLE macro. This patch simply includes appropriate header into sanitizer_symbolizer_libbacktrace.h to resolve the issue. Patch by Maxim Ostapenko! Reviewers: kcc, eugenis, samsonov Subscribers: llvm-commits, ygribov Differential Revision: http://reviews.llvm.org/D13429 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@249633 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-02Symbolizer refactoring: Make LibbacktraceSymbolizer adopt the SymbolizerTool ↵Kuba Brecka
interface Reviewed at http://reviews.llvm.org/D7971 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@231032 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-02Symbolizer refactoring: Move internals to separate filesKuba Brecka
Reviewed at http://reviews.llvm.org/D7972 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@231014 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-16Fix data symbolization with libbacktrace. Patch by Jakub Jelinek!Alexey Samsonov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@224308 91177308-0d34-0410-b5e6-96231b3b80d8
2014-12-02Simplify Symbolizer::SymbolizePC() interface.Alexey Samsonov
Return a linked list of AddressInfo objects, instead of using an array of these objects as an output parameter. This simplifies the code in callers of this function (especially TSan). Fix a few memory leaks from internal allocator, when the returned AddressInfo objects were not properly cleared. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@223145 91177308-0d34-0410-b5e6-96231b3b80d8
2014-02-28tsan: add include guardsDmitry Vyukov
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@202503 91177308-0d34-0410-b5e6-96231b3b80d8
2014-01-16[Sanitizer] Add basic support for using libbacktrace in symbolizer.Alexey Samsonov
This change allows to compile sanitizer sources so that *san runtime will attempt to use libbacktrace and/or libiberty for symbolization (instead of communicating with llvm-symbolizer). I've tested this patch by manually defining SANITIZER_LIBBACKTRACE and/or SANITIZER_CP_DEMANGLE, linking with necessary libraries and verifying that all tests from ASan test suite work. Based on patches by Jakub Jelinek! git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@199384 91177308-0d34-0410-b5e6-96231b3b80d8
2013-12-10Revert a final patch that was committed without the author contributingChandler Carruth
it to the LLVM project through the appropriate channels. This reverts: r195837: "[Sanitizer] Add rudimentary support for using libbacktrace in ..." git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@196875 91177308-0d34-0410-b5e6-96231b3b80d8
2013-11-27[Sanitizer] Add rudimentary support for using libbacktrace in symbolizer.Alexey Samsonov
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