Home | History | Annotate | Download | only in sanitizer_common

Lines Matching defs:Symbolizer

10 // Symbolizer is used by sanitizers to map instruction address to a location in
11 // source code at run-time. Symbolizer either uses __sanitizer_symbolize_*
13 // launch "llvm-symbolizer" commandline tool in a separate process and
73 class Symbolizer {
75 /// Returns platform-specific implementation of Symbolizer. The symbolizer
77 static Symbolizer *Get();
78 /// Returns platform-specific implementation of Symbolizer, or null if not
80 static Symbolizer *GetOrNull();
81 /// Returns platform-specific implementation of Symbolizer. Will
82 /// automatically initialize symbolizer as if by calling Init(0) if needed.
83 static Symbolizer *GetOrInit();
84 /// Initialize and return the symbolizer, given an optional path to an
85 /// external symbolizer. The path argument is only required for legacy
86 /// reasons as this function will check $PATH for an external symbolizer. Not
88 static Symbolizer *Init(const char* path_to_external = 0);
113 // Allow user to install hooks that would be called before/after Symbolizer
124 /// Platform-specific function for creating a Symbolizer object.
125 static Symbolizer *PlatformInit(const char *path_to_external);
126 /// Create a symbolizer and store it to symbolizer_ without checking if one
128 static Symbolizer *CreateAndStore(const char *path_to_external);
129 /// Initialize the symbolizer in a disabled state. Not thread safe.
130 static Symbolizer *Disable();
132 static Symbolizer *symbolizer_;
136 Symbolizer();
144 explicit SymbolizerScope(const Symbolizer *sym);
147 const Symbolizer *sym_;