diff options
author | Alexey Samsonov <samsonov@google.com> | 2013-09-10 14:36:16 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2013-09-10 14:36:16 +0000 |
commit | 7847d77b246635211c3bf465421d49d7af5226c1 (patch) | |
tree | 3cfd208ba07884f253113a44fdf80f49207f9bc4 /lib/sanitizer_common/sanitizer_linux.h | |
parent | 34e3ed1db94c5ce9784d7ffb8d66a54cf523e09c (diff) | |
download | compiler-rt-7847d77b246635211c3bf465421d49d7af5226c1.tar.gz |
[Sanitizer] Refactor symbolization interface: use class instead of several functions. Move some code around to get rid of extra source files
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@190410 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_linux.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_linux.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_linux.h b/lib/sanitizer_common/sanitizer_linux.h index c0fba48da..4c0450e86 100644 --- a/lib/sanitizer_common/sanitizer_linux.h +++ b/lib/sanitizer_common/sanitizer_linux.h @@ -13,6 +13,8 @@ #ifndef SANITIZER_LINUX_H #define SANITIZER_LINUX_H +#include "sanitizer_platform.h" +#if SANITIZER_LINUX #include "sanitizer_common.h" #include "sanitizer_internal_defs.h" @@ -69,10 +71,13 @@ bool LibraryNameIs(const char *full_name, const char *base_name); // Read the name of the current binary from /proc/self/exe. uptr ReadBinaryName(/*out*/char *buf, uptr buf_len); +// Cache the value of /proc/self/exe. +void CacheBinaryName(); // Call cb for each region mapped by map. void ForEachMappedRegion(link_map *map, void (*cb)(const void *, uptr)); } // namespace __sanitizer +#endif // SANITIZER_LINUX #endif // SANITIZER_LINUX_H |