diff options
author | Alexey Samsonov <vonosmas@gmail.com> | 2014-11-06 18:43:45 +0000 |
---|---|---|
committer | Alexey Samsonov <vonosmas@gmail.com> | 2014-11-06 18:43:45 +0000 |
commit | a1448787a069603414e716adc8a41f866e28a4b4 (patch) | |
tree | ef90ed53e2b138fd4fb6a11034453171f603493d /lib/sanitizer_common/sanitizer_flags.h | |
parent | ae8f7b8798be3bf129ea702586b06a17e3af12c5 (diff) |
[Sanitizer] Introduce "stack_trace_format" runtime flag.
This flag can be used to specify the format of stack frames - user
can now provide a string with placeholders, which should be printed
for each stack frame with placeholders replaced with actual data.
For example "%p" will be replaced by PC, "%s" will be replaced by
the source file name etc.
"DEFAULT" value enforces default stack trace format currently used in
all the sanitizers except TSan.
This change also implements __sanitizer_print_stack_trace interface
function in TSan.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@221469 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_flags.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_flags.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_flags.h b/lib/sanitizer_common/sanitizer_flags.h index 6d1d9b60b..4791397a5 100644 --- a/lib/sanitizer_common/sanitizer_flags.h +++ b/lib/sanitizer_common/sanitizer_flags.h @@ -62,6 +62,7 @@ struct CommonFlags { bool print_suppressions; bool disable_coredump; bool symbolize_inline_frames; + const char *stack_trace_format; }; inline CommonFlags *common_flags() { |