[compiler-rt] r278706 - [ubsan] Initialize Android logging.
Evgeniy Stepanov via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 15 11:35:41 PDT 2016
Author: eugenis
Date: Mon Aug 15 13:35:40 2016
New Revision: 278706
URL: http://llvm.org/viewvc/llvm-project?rev=278706&view=rev
Log:
[ubsan] Initialize Android logging.
This adds standalone ubsan output to "adb logcat", the same as ASan does.
Modified:
compiler-rt/trunk/lib/ubsan/ubsan_init.cc
Modified: compiler-rt/trunk/lib/ubsan/ubsan_init.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/ubsan/ubsan_init.cc?rev=278706&r1=278705&r2=278706&view=diff
==============================================================================
--- compiler-rt/trunk/lib/ubsan/ubsan_init.cc (original)
+++ compiler-rt/trunk/lib/ubsan/ubsan_init.cc Mon Aug 15 13:35:40 2016
@@ -39,6 +39,7 @@ static void CommonStandaloneInit() {
InitializeFlags();
CacheBinaryName();
__sanitizer_set_report_path(common_flags()->log_path);
+ AndroidLogInit();
InitializeCoverage(common_flags()->coverage, common_flags()->coverage_dir);
CommonInit();
ubsan_mode = UBSAN_MODE_STANDALONE;
More information about the llvm-commits
mailing list