From 296d3c935d55f3f95d332e0118e2a7aa2f96fbaa Mon Sep 17 00:00:00 2001 From: Kuba Brecka Date: Thu, 12 Mar 2015 10:53:18 +0000 Subject: 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 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@232026 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/sanitizer_common/sanitizer_symbolizer_internal.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/sanitizer_common/sanitizer_symbolizer_internal.h') diff --git a/lib/sanitizer_common/sanitizer_symbolizer_internal.h b/lib/sanitizer_common/sanitizer_symbolizer_internal.h index b57096451..0ba4eb5df 100644 --- a/lib/sanitizer_common/sanitizer_symbolizer_internal.h +++ b/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 -- cgit v1.2.1