summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_flags.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-02-12 08:29:42 +0000
committerAlexey Samsonov <samsonov@google.com>2014-02-12 08:29:42 +0000
commit7304b4201f7f5b64cb44c540d98182cea1f630da (patch)
treeaebab3e230b7ceb6e7bc88db4a435ef782e8dca3 /compiler-rt/lib/sanitizer_common/sanitizer_flags.h
parentc34a997669646c0f87f6eb63a57173f4e2e2ac71 (diff)
downloadbcm5719-llvm-7304b4201f7f5b64cb44c540d98182cea1f630da.tar.gz
bcm5719-llvm-7304b4201f7f5b64cb44c540d98182cea1f630da.zip
[Sanitizer] Teach external symbolizer to work with addr2line if llvm-symbolizer is unavailable. Allow this mode in TSan.
llvm-svn: 201218
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_flags.h')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_flags.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_flags.h b/compiler-rt/lib/sanitizer_common/sanitizer_flags.h
index cf2066a148f..a580acad86c 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_flags.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_flags.h
@@ -30,6 +30,10 @@ struct CommonFlags {
// in PATH. If it is empty (or if "symbolize" is false), external symbolizer
// will not be started.
const char *external_symbolizer_path;
+ // If set, allows online symbolizer to run addr2line binary to symbolize
+ // stack traces (addr2line will only be used if llvm-symbolizer binary is not
+ // available.
+ bool allow_addr2line;
// Strips this prefix from file paths in error reports.
const char *strip_path_prefix;
// Use fast (frame-pointer-based) unwinder on fatal errors (if available).
OpenPOWER on IntegriCloud