diff options
author | Sergey Matveev <earthdok@google.com> | 2013-12-03 18:24:28 +0000 |
---|---|---|
committer | Sergey Matveev <earthdok@google.com> | 2013-12-03 18:24:28 +0000 |
commit | 82c016a473f9bbfa7bbe2618a4cf96838b113b82 (patch) | |
tree | 017170429828b20cfeed8af751772ded3f3f259a /include/sanitizer | |
parent | 4621fc91a3e0ca9f337813fa2ba4cfd9849c21f7 (diff) |
[sanitizer] Expose __sanitizer_print_stack_trace().
Expose a new interface function for debugging code built with sanitizer tools.
Add an ASan implementation.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@196302 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/sanitizer')
-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 801fe48a9..ce4f75ad5 100644 --- a/include/sanitizer/common_interface_defs.h +++ b/include/sanitizer/common_interface_defs.h @@ -85,6 +85,9 @@ extern "C" { const void *old_mid, const void *new_mid); + // Print the stack trace leading to this call. Useful for debugging user code. + void __sanitizer_print_stack_trace(); + #ifdef __cplusplus } // extern "C" #endif |