diff options
| author | Kuba Brecka <kuba.brecka@gmail.com> | 2015-03-12 10:53:18 +0000 |
|---|---|---|
| committer | Kuba Brecka <kuba.brecka@gmail.com> | 2015-03-12 10:53:18 +0000 |
| commit | 656e184f6c72b76618cf0b0679ad643995754a38 (patch) | |
| tree | 6a5c61230aafe198ac5e64399477c6339f569406 /compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_internal.h | |
| parent | 3c53266ca89647ca5bf45cba0f4db6a689d911da (diff) | |
| download | bcm5719-llvm-656e184f6c72b76618cf0b0679ad643995754a38.tar.gz bcm5719-llvm-656e184f6c72b76618cf0b0679ad643995754a38.zip | |
Adding the implementation of atos and dladdr symbolizers for OS X.
They are currently still *not* used, "llvm-symbolizer" is still the default symbolizer on OS X.
Reviewed at http://reviews.llvm.org/D6588
llvm-svn: 232026
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_internal.h')
| -rw-r--r-- | compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_internal.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_internal.h b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_internal.h index b570964510b..0ba4eb5df15 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_internal.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_internal.h @@ -25,6 +25,8 @@ namespace __sanitizer { const char *ExtractToken(const char *str, const char *delims, char **result); const char *ExtractInt(const char *str, const char *delims, int *result); const char *ExtractUptr(const char *str, const char *delims, uptr *result); +const char *ExtractTokenUpToDelimiter(const char *str, const char *delimiter, + char **result); // SymbolizerTool is an interface that is implemented by individual "tools" // that can perform symbolication (external llvm-symbolizer, libbacktrace, @@ -67,7 +69,7 @@ class SymbolizerTool { // SymbolizerProcess may not be used from two threads simultaneously. class SymbolizerProcess { public: - explicit SymbolizerProcess(const char *path); + explicit SymbolizerProcess(const char *path, bool use_forkpty = false); const char *SendCommand(const char *command); private: @@ -97,6 +99,7 @@ class SymbolizerProcess { uptr times_restarted_; bool failed_to_start_; bool reported_invalid_path_; + bool use_forkpty_; }; } // namespace __sanitizer |

