diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-10-30 17:17:35 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-10-30 17:17:35 +0000 |
commit | a263425653a44ea823e2e071a7d1ab686b47c570 (patch) | |
tree | 82d49690b62bffa081b9a7837232ee399c81a63c /lib/sanitizer_common | |
parent | e00495aa0f3b114c7b764769d9450e5d2efb8e64 (diff) | |
download | compiler-rt-a263425653a44ea823e2e071a7d1ab686b47c570.tar.gz compiler-rt-a263425653a44ea823e2e071a7d1ab686b47c570.tar.bz2 compiler-rt-a263425653a44ea823e2e071a7d1ab686b47c570.tar.xz |
[Sanitizer] Update comment in sanitizer_symbolizer.h
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@193700 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common')
-rw-r--r-- | lib/sanitizer_common/sanitizer_symbolizer.h | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/lib/sanitizer_common/sanitizer_symbolizer.h b/lib/sanitizer_common/sanitizer_symbolizer.h index fb9473f3..f4191328 100644 --- a/lib/sanitizer_common/sanitizer_symbolizer.h +++ b/lib/sanitizer_common/sanitizer_symbolizer.h @@ -7,19 +7,14 @@ // //===----------------------------------------------------------------------===// // -// Symbolizer is intended to be used by both -// AddressSanitizer and ThreadSanitizer to symbolize a given -// address. It is an analogue of addr2line utility and allows to map -// instruction address to a location in source code at run-time. +// Symbolizer is used by sanitizers to map instruction address to a location in +// source code at run-time. Symbolizer either uses __sanitizer_symbolize_* +// defined in the program, or (if they are missing) tries to find and +// launch "llvm-symbolizer" commandline tool in a separate process and +// communicate with it. // -// Symbolizer is planned to use debug information (in DWARF format) -// in a binary via interface defined in "llvm/DebugInfo/DIContext.h" -// -// Symbolizer code should be called from the run-time library of -// dynamic tools, and generally should not call memory allocation -// routines or other system library functions intercepted by those tools. -// Instead, Symbolizer code should use their replacements, defined in -// "compiler-rt/lib/sanitizer_common/sanitizer_libc.h". +// Generally we should try to avoid calling system library functions during +// symbolization (and use their replacements from sanitizer_libc.h instead). //===----------------------------------------------------------------------===// #ifndef SANITIZER_SYMBOLIZER_H #define SANITIZER_SYMBOLIZER_H @@ -27,7 +22,6 @@ #include "sanitizer_allocator_internal.h" #include "sanitizer_internal_defs.h" #include "sanitizer_libc.h" -// WARNING: Do not include system headers here. See details above. namespace __sanitizer { |