[PATCH] D48902: [scudo] Add some logs for Android

Kostya Kortchinsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 3 15:39:04 PDT 2018


cryptoad updated this revision to Diff 154008.
cryptoad added a comment.

Updated the sequence.


Repository:
  rCRT Compiler Runtime

https://reviews.llvm.org/D48902

Files:
  lib/scudo/scudo_utils.cpp


Index: lib/scudo/scudo_utils.cpp
===================================================================
--- lib/scudo/scudo_utils.cpp
+++ lib/scudo/scudo_utils.cpp
@@ -50,6 +50,9 @@
   internal_memcpy(Message, ScudoError, PrefixSize);
   VSNPrintf(Message + PrefixSize, sizeof(Message) - PrefixSize, Format, Args);
   va_end(Args);
+  LogMessageOnPrintf(Message);
+  if (common_flags()->abort_on_error)
+    SetAbortMessage(Message);
   RawWrite(Message);
   Die();
 }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48902.154008.patch
Type: text/x-patch
Size: 466 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180703/93873073/attachment.bin>


More information about the llvm-commits mailing list