diff options
author | Timur Iskhodzhanov <timurrrr@google.com> | 2013-12-18 14:29:16 +0000 |
---|---|---|
committer | Timur Iskhodzhanov <timurrrr@google.com> | 2013-12-18 14:29:16 +0000 |
commit | 65bedc8fad65ba417e945ba2b04a73ef70384580 (patch) | |
tree | f5018597217c1578910670239aec94225ea53165 /lib/sanitizer_common/sanitizer_symbolizer.h | |
parent | ce0ccbea81e3db32904502d9e2566ab27ed5ff00 (diff) | |
download | compiler-rt-65bedc8fad65ba417e945ba2b04a73ef70384580.tar.gz |
[Sanitizer] Implement Symbolizer class on Windows
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@197571 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_symbolizer.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_symbolizer.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/sanitizer_common/sanitizer_symbolizer.h b/lib/sanitizer_common/sanitizer_symbolizer.h index 4271fa67f..776cdebb6 100644 --- a/lib/sanitizer_common/sanitizer_symbolizer.h +++ b/lib/sanitizer_common/sanitizer_symbolizer.h @@ -27,23 +27,30 @@ namespace __sanitizer { struct AddressInfo { uptr address; + char *module; uptr module_offset; + + static const uptr kUnknown = ~(uptr)0; char *function; + uptr function_offset; + char *file; int line; int column; AddressInfo() { internal_memset(this, 0, sizeof(AddressInfo)); + function_offset = kUnknown; } - // Deletes all strings and sets all fields to zero. + // Deletes all strings and resets all fields. void Clear() { InternalFree(module); InternalFree(function); InternalFree(file); internal_memset(this, 0, sizeof(AddressInfo)); + function_offset = kUnknown; } void FillAddressAndModuleInfo(uptr addr, const char *mod_name, |