diff options
author | Kostya Serebryany <kcc@google.com> | 2016-09-19 05:10:32 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2016-09-19 05:10:32 +0000 |
commit | 82977c3f10ca3e2cbb7ea933807a9ec24eb5d8d9 (patch) | |
tree | 05d366f56a6e015dae5d7baa87a072a9416c46e9 /include | |
parent | 901649023e88d18a3e5dcf421c594f41f973f33a (diff) |
[sanitizer] add __sanitizer_symbolize_data (can only print the names of the globals for now)
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@281886 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/sanitizer/common_interface_defs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sanitizer/common_interface_defs.h b/include/sanitizer/common_interface_defs.h index 0ed2bec2e..0ebe91018 100644 --- a/include/sanitizer/common_interface_defs.h +++ b/include/sanitizer/common_interface_defs.h @@ -123,6 +123,9 @@ extern "C" { // lib/sanitizer_common/sanitizer_stacktrace_printer.h. void __sanitizer_symbolize_pc(void *pc, const char *fmt, char *out_buf, size_t out_buf_size); + // Same as __sanitizer_symbolize_pc, but for data section (i.e. globals). + void __sanitizer_symbolize_data(void *data_ptr, const char *fmt, + char *out_buf, size_t out_buf_size); // Sets the callback to be called right before death on error. // Passing 0 will unset the callback. |