summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_flags.h
diff options
context:
space:
mode:
authorAlexey Samsonov <vonosmas@gmail.com>2014-11-06 18:43:45 +0000
committerAlexey Samsonov <vonosmas@gmail.com>2014-11-06 18:43:45 +0000
commitfbaaed6b581a3d08b16f0a247e32e98398d014ea (patch)
tree939760282397ae02e47cd1a63ded2ab144f1cd00 /compiler-rt/lib/sanitizer_common/sanitizer_flags.h
parente6352e47975a8b90d090c0243241e56027c0caf1 (diff)
downloadbcm5719-llvm-fbaaed6b581a3d08b16f0a247e32e98398d014ea.tar.gz
bcm5719-llvm-fbaaed6b581a3d08b16f0a247e32e98398d014ea.zip
[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. llvm-svn: 221469
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_flags.h')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_flags.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_flags.h b/compiler-rt/lib/sanitizer_common/sanitizer_flags.h
index 6d1d9b60b8d..4791397a576 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_flags.h
+++ b/compiler-rt/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() {
OpenPOWER on IntegriCloud