diff options
author | Kuba Mracek <mracek@apple.com> | 2017-01-06 20:57:47 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2017-01-06 20:57:47 +0000 |
commit | 47b4cadc8fc1d82b28f648609604c7d7bf12aa0d (patch) | |
tree | a8a30372e4f5edc748c0f44babb1bcd87781568d /lib/sanitizer_common/sanitizer_flags.inc | |
parent | 0aad13bae1d86febf022d0c9b0299183e1d00f34 (diff) | |
download | compiler-rt-47b4cadc8fc1d82b28f648609604c7d7bf12aa0d.tar.gz |
[sanitizer] Add a 'print_module_map' flag which prints modules with UUIDs on Darwin
This patch add a new sanitizer flag, print_module_map, which enables printing a module map when the process exits, or after each report (for TSan). The output format is very similar to what Crash Reporter produces on Darwin (e.g. the format of module UUIDs). This enables users to use the existing symbol servers to offline symbolicate and aggregate reports.
Differential Revision: https://reviews.llvm.org/D27400
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@291277 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_flags.inc')
-rw-r--r-- | lib/sanitizer_common/sanitizer_flags.inc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_flags.inc b/lib/sanitizer_common/sanitizer_flags.inc index 43900f87b..d7fa34a58 100644 --- a/lib/sanitizer_common/sanitizer_flags.inc +++ b/lib/sanitizer_common/sanitizer_flags.inc @@ -74,6 +74,9 @@ COMMON_FLAG(bool, allocator_may_return_null, false, COMMON_FLAG(bool, print_summary, true, "If false, disable printing error summaries in addition to error " "reports.") +COMMON_FLAG(int, print_module_map, 0, + "OS X only. 0 = don't print, 1 = print only once before process " + "exits, 2 = print after each report.") COMMON_FLAG(bool, check_printf, true, "Check printf arguments.") COMMON_FLAG(bool, handle_segv, true, "If set, registers the tool's custom SIGSEGV/SIGBUS handler.") |