summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMike Aizatsky <aizatsky@chromium.org>2016-12-05 21:45:14 +0000
committerMike Aizatsky <aizatsky@chromium.org>2016-12-05 21:45:14 +0000
commit357c5b99f0b837467b19fcfca97913d7452052de (patch)
tree3696fdd6efce93375978cc390e5533b5ec5bb2cc /include
parent92aa663d37027ec3ae85dc3750dad19beb5b5380 (diff)
[sanitizers] __sanitizer_get_module_and_offset_for_pc interface function
Summary: The function computes full module name and coverts pc into offset. Reviewers: kcc Subscribers: kubabrecka Differential Revision: https://reviews.llvm.org/D26820 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@288711 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/sanitizer/common_interface_defs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sanitizer/common_interface_defs.h b/include/sanitizer/common_interface_defs.h
index 130f0f27a..f9f930223 100644
--- a/include/sanitizer/common_interface_defs.h
+++ b/include/sanitizer/common_interface_defs.h
@@ -182,6 +182,13 @@ extern "C" {
void __sanitizer_finish_switch_fiber(void *fake_stack_save,
const void **bottom_old,
size_t *size_old);
+
+ // Get full module name and calculate pc offset within it.
+ // Returns 1 if pc belongs to some module, 0 if module was not found.
+ int __sanitizer_get_module_and_offset_for_pc(void *pc, char *module_path,
+ size_t module_path_len,
+ void **pc_offset);
+
#ifdef __cplusplus
} // extern "C"
#endif