summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_symbolizer_libbacktrace.cc
AgeCommit message (Collapse)Author
2017-11-07[sanitizer] Fix sanitizer_common compile errors on gcc trunkVitaly Buka
Summary: When testing a merge of compiler-rt r304709 into gcc trunk on x86-64-pc-linux-gnu, I ran into two compile errors: sanitizer_common/sanitizer_symbolizer_libbacktrace.cc:96:73: error: no matching function for call to '__sanitizer::AddressInfo::FillModuleInfo(char*&, __sanitizer::uptr&)' All other files in sanitizer_common (with the exception of sanitizer_malloc_mac.inc which is special) include sanitizer_platform.h without directory name. Patch by Mike Jongen Reviewers: kcc, vitalybuka Reviewed By: kcc Subscribers: kubamracek, fedor.sergeev, llvm-commits Differential Revision: https://reviews.llvm.org/D33933 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@317608 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-03Symbolizer refactoring: Turn FillAddressAndModuleInfo into FillModuleInfoKuba Brecka
Reviewed at http://reviews.llvm.org/D8020 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@231061 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
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-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