[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:37:11 PDT 2018
cryptoad created this revision.
cryptoad added a reviewer: alekseyshl.
Herald added subscribers: Sanitizers, delcypher.
Namely, set the abort message, and allow to write the message to syslog if the
option is enabled.
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
@@ -51,6 +51,9 @@
VSNPrintf(Message + PrefixSize, sizeof(Message) - PrefixSize, Format, Args);
va_end(Args);
RawWrite(Message);
+ LogMessageOnPrintf(Message);
+ if (common_flags()->abort_on_error)
+ SetAbortMessage(Message);
Die();
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48902.154007.patch
Type: text/x-patch
Size: 415 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180703/9abe2725/attachment.bin>
More information about the llvm-commits
mailing list