diff options
author | Kostya Serebryany <kcc@google.com> | 2013-02-06 12:36:49 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2013-02-06 12:36:49 +0000 |
commit | 2673fd8406197c42f16cede6d287f72169298c2e (patch) | |
tree | 383e8e186b1ce47984a84768324ca04125b1238f /lib/sanitizer_common/sanitizer_common.h | |
parent | 69563986ca570ce750111a82264d51ddbf4107ba (diff) | |
download | compiler-rt-2673fd8406197c42f16cede6d287f72169298c2e.tar.gz |
[asan] print a short one-line report summary after the full report. Currently, works only if symbolization happens in-process.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@174501 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_common.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_common.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_common.h b/lib/sanitizer_common/sanitizer_common.h index b39bd74e8..b0501db09 100644 --- a/lib/sanitizer_common/sanitizer_common.h +++ b/lib/sanitizer_common/sanitizer_common.h @@ -19,6 +19,7 @@ #include "sanitizer_internal_defs.h" namespace __sanitizer { +struct StackTrace; // Constants. const uptr kWordSize = SANITIZER_WORDSIZE / 8; @@ -157,6 +158,12 @@ typedef void (*CheckFailedCallbackType)(const char *, int, const char *, u64, u64); void SetCheckFailedCallback(CheckFailedCallbackType callback); +// Construct a one-line string like +// SanitizerToolName: error_type file:line function +// and call __sanitizer_report_error_summary on it. +void ReportErrorSummary(const char *error_type, const char *file, + int line, const char *function); + // Math INLINE bool IsPowerOfTwo(uptr x) { return (x & (x - 1)) == 0; |