diff options
author | Sergey Matveev <earthdok@google.com> | 2013-05-14 14:04:06 +0000 |
---|---|---|
committer | Sergey Matveev <earthdok@google.com> | 2013-05-14 14:04:06 +0000 |
commit | d1470cbaab10715511c83b91dfdefe59d98fa595 (patch) | |
tree | 994ddff025afbe907bc1475846877f3438cd85ea /lib/sanitizer_common/sanitizer_symbolizer.h | |
parent | 84b35c4ddf4e9ad23b40bb4c4d9fbc4c0a3d53a2 (diff) | |
download | compiler-rt-d1470cbaab10715511c83b91dfdefe59d98fa595.tar.gz compiler-rt-d1470cbaab10715511c83b91dfdefe59d98fa595.tar.bz2 compiler-rt-d1470cbaab10715511c83b91dfdefe59d98fa595.tar.xz |
[sanitizer] Filtering in GetListOfModules.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@181791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_symbolizer.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_symbolizer.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/sanitizer_common/sanitizer_symbolizer.h b/lib/sanitizer_common/sanitizer_symbolizer.h index 3aeebe9a..91687153 100644 --- a/lib/sanitizer_common/sanitizer_symbolizer.h +++ b/lib/sanitizer_common/sanitizer_symbolizer.h @@ -107,8 +107,11 @@ bool StartSymbolizerSubprocess(const char *path_to_symbolizer, // OS-dependent function that fills array with descriptions of at most // "max_modules" currently loaded modules. Returns the number of -// initialized modules. -uptr GetListOfModules(LoadedModule *modules, uptr max_modules); +// initialized modules. If filter is nonzero, ignores modules for which +// filter(full_name) is false. +typedef bool (*string_predicate_t)(const char *); +uptr GetListOfModules(LoadedModule *modules, uptr max_modules, + string_predicate_t filter); } // namespace __sanitizer |