[UBSan] Add the ability to dump call stacks to -fsanitize=vptr
commit805b0e8f7f27a88fe1930bf346c48499655fe091
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 23 Jul 2014 18:44:54 +0000 (23 18:44 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 23 Jul 2014 18:44:54 +0000 (23 18:44 +0000)
tree2bc0bf34098d52a235b897a46b2ffedf71df2aef
parentbb7c4cb9e8f061711b833931b3f4197af5d9a090
[UBSan] Add the ability to dump call stacks to -fsanitize=vptr

This change introduces the first UBSan-specific runtime flag: print_stacktrace
(off by default). It can be set in UBSAN_OPTIONS to unwind and print call stacks
in addition to diagnostic messages. For now these stacks are printed only
in vptr checker.

This change is based on http://reviews.llvm.org/D4410 by Byoungyoung Lee!

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@213783 91177308-0d34-0410-b5e6-96231b3b80d8
lib/ubsan/CMakeLists.txt
lib/ubsan/ubsan_diag.cc
lib/ubsan/ubsan_diag.h
lib/ubsan/ubsan_flags.cc [new file with mode: 0644]
lib/ubsan/ubsan_flags.h [new file with mode: 0644]
lib/ubsan/ubsan_handlers_cxx.cc
test/ubsan/TestCases/TypeCheck/vptr.cpp