diff options
author | Kostya Serebryany <kcc@google.com> | 2012-12-29 10:18:31 +0000 |
---|---|---|
committer | Kostya Serebryany <kcc@google.com> | 2012-12-29 10:18:31 +0000 |
commit | 17a7c6763224300f6740b5e7fae274734afec675 (patch) | |
tree | 90f06f03337fc24b12bbd0302542e3afd3aebedf /include/sanitizer | |
parent | c0d37b35439897aea821319a669832b16848cb65 (diff) |
[asan] add a new interface function __asan_describe_address, useful for running asan-ified binary under a debugger (e.g. gdb)
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@171217 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/sanitizer')
-rw-r--r-- | include/sanitizer/asan_interface.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sanitizer/asan_interface.h b/include/sanitizer/asan_interface.h index c3382ceca..6e8ae8723 100644 --- a/include/sanitizer/asan_interface.h +++ b/include/sanitizer/asan_interface.h @@ -122,6 +122,10 @@ extern "C" { uptr __asan_region_is_poisoned(uptr beg, uptr size) SANITIZER_INTERFACE_ATTRIBUTE; + // Print the description of addr (useful when debugging in gdb). + void __asan_describe_address(uptr addr) + SANITIZER_INTERFACE_ATTRIBUTE; + // This is an internal function that is called to report an error. // However it is still a part of the interface because users may want to // set a breakpoint on this function in a debugger. |