diff options
author | Filipe Cabecinhas <me@filcab.net> | 2016-08-17 19:52:12 +0000 |
---|---|---|
committer | Filipe Cabecinhas <me@filcab.net> | 2016-08-17 19:52:12 +0000 |
commit | 124a13da0ee4c2b6ac6870d8a8520b1883389c5a (patch) | |
tree | 0db90205c98ac94f2622191e44785b0dfe3483c7 /lib/asan/asan_report.h | |
parent | 260ccadfee97359902beb4f43666ba60f50f47b4 (diff) |
Split DescribeAddressIfGlobal between a function that gets all the information, and one that prints it.
Summary:
Replacement for part of D23518
This deals with global variable addresses.
(This commit is written on top of D23605, but can be applied by itself)
Reviewers: kcc, samsonov
Subscribers: kubabrecka, llvm-commits
Differential Revision: https://reviews.llvm.org/D23607
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@278959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/asan_report.h')
-rw-r--r-- | lib/asan/asan_report.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/asan/asan_report.h b/lib/asan/asan_report.h index 898018b3a..871bf6425 100644 --- a/lib/asan/asan_report.h +++ b/lib/asan/asan_report.h @@ -37,7 +37,11 @@ struct AddressDescription { // them to "globals" array. int GetGlobalsForAddress(uptr addr, __asan_global *globals, u32 *reg_sites, int max_globals); -bool GetInfoForAddressIfGlobal(uptr addr, AddressDescription *descr); + +const char *MaybeDemangleGlobalName(const char *name); +void PrintGlobalNameIfASCII(InternalScopedString *str, const __asan_global &g); +void PrintGlobalLocation(InternalScopedString *str, const __asan_global &g); + // The following functions prints address description depending // on the memory type (shadow/heap/stack/global). bool ParseFrameDescription(const char *frame_descr, |