summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_flags.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-12-17 11:15:39 +0000
committerAlexey Samsonov <samsonov@google.com>2013-12-17 11:15:39 +0000
commit6bd601b5267bff1c7ce5f69815cd59d0a4cd0576 (patch)
tree6c6179f647425f8be8c75b9aa4e94e3ab2668c51 /lib/sanitizer_common/sanitizer_flags.h
parentbb6f93683ef9e9d87b2ff912af651e0ea0e3abd2 (diff)
[Sanitizer] Always initialize a Symbolizer (even if 'symbolize' is false).
If 'symbolize' flag is not set, we still want to transform virtual address to module+offset pair in the call to Symbolizer::SymbolizeCode(). See https://code.google.com/p/address-sanitizer/issues/detail?id=251 for more details. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197491 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_flags.h')
-rw-r--r--lib/sanitizer_common/sanitizer_flags.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/sanitizer_common/sanitizer_flags.h b/lib/sanitizer_common/sanitizer_flags.h
index ffc69fe18..34584f443 100644
--- a/lib/sanitizer_common/sanitizer_flags.h
+++ b/lib/sanitizer_common/sanitizer_flags.h
@@ -23,10 +23,12 @@ void ParseFlag(const char *env, int *flag, const char *name);
void ParseFlag(const char *env, const char **flag, const char *name);
struct CommonFlags {
- // If set, use the online symbolizer from common sanitizer runtime.
+ // If set, use the online symbolizer from common sanitizer runtime to turn
+ // virtual addresses to file/line locations.
bool symbolize;
// Path to external symbolizer. If it is NULL, symbolizer will be looked for
- // in PATH. If it is empty, external symbolizer will not be started.
+ // in PATH. If it is empty (or if "symbolize" is false), external symbolizer
+ // will not be started.
const char *external_symbolizer_path;
// Strips this prefix from file paths in error reports.
const char *strip_path_prefix;