Use llvm-symbolizer to symbolize LLVM/Clang crash dumps.
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 8 Oct 2014 22:57:47 +0000 (22:57 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 8 Oct 2014 22:57:47 +0000 (22:57 +0000)
commitee3948fdbed2737242e2c8d0a945fd075940f2f7
tree49d720857eb92451e2b367f2772ae47f13fdd360
parent46e29705c667a94eb99828687f31dcb20f081feb
Use llvm-symbolizer to symbolize LLVM/Clang crash dumps.

This change modifies fatal signal handler used in LLVM tools.
Now it attempts to find llvm-symbolizer binary and communicates
with it in order to turn instruction addresses into
function/file/line info entries. This should significantly improve
stack traces readability in Debug builds.

This feature only works on selected platforms (including Darwin
and Linux). If the symbolization fails for some reason, signal
handler will fallback to the original behavior.

Reviewed in http://reviews.llvm.org/D5610

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219354 91177308-0d34-0410-b5e6-96231b3b80d8
cmake/config-ix.cmake
include/llvm/Config/config.h.cmake
lib/Support/Unix/Signals.inc