summaryrefslogtreecommitdiff
path: root/lib/sanitizer_common/sanitizer_symbolizer_internal.h
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2015-03-12 10:53:18 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2015-03-12 10:53:18 +0000
commit296d3c935d55f3f95d332e0118e2a7aa2f96fbaa (patch)
treec83af51caf7ea643d1cab1bf6e49b3a5a206c1b3 /lib/sanitizer_common/sanitizer_symbolizer_internal.h
parent6a31310a98f3e04b10b3bef8413a5f51a1de96c9 (diff)
downloadcompiler-rt-296d3c935d55f3f95d332e0118e2a7aa2f96fbaa.tar.gz
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
Diffstat (limited to 'lib/sanitizer_common/sanitizer_symbolizer_internal.h')
-rw-r--r--lib/sanitizer_common/sanitizer_symbolizer_internal.h5
1 files changed, 4 insertions, 1 deletions
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