diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2016-03-01 15:38:12 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2016-03-01 15:38:12 +0000 |
commit | c21d70ce7c70a3ea5b55f53ccf9b6daaaa09889c (patch) | |
tree | d731549f144ee3be4c3c8f04723a6e3dd97889a1 /lib/sanitizer_common | |
parent | e565494694806a4b10090c598a2373123c02b011 (diff) |
tsan: describe heap/data locations in Go
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@262343 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common')
-rw-r--r-- | lib/sanitizer_common/sanitizer_symbolizer.cc | 1 | ||||
-rw-r--r-- | lib/sanitizer_common/sanitizer_symbolizer.h | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_symbolizer.cc b/lib/sanitizer_common/sanitizer_symbolizer.cc index 6e271c004..534e55f57 100644 --- a/lib/sanitizer_common/sanitizer_symbolizer.cc +++ b/lib/sanitizer_common/sanitizer_symbolizer.cc @@ -60,6 +60,7 @@ DataInfo::DataInfo() { void DataInfo::Clear() { InternalFree(module); + InternalFree(file); InternalFree(name); internal_memset(this, 0, sizeof(DataInfo)); } diff --git a/lib/sanitizer_common/sanitizer_symbolizer.h b/lib/sanitizer_common/sanitizer_symbolizer.h index a1d4d009c..edf487f84 100644 --- a/lib/sanitizer_common/sanitizer_symbolizer.h +++ b/lib/sanitizer_common/sanitizer_symbolizer.h @@ -65,6 +65,8 @@ struct DataInfo { // (de)allocated using sanitizer internal allocator. char *module; uptr module_offset; + char *file; + uptr line; char *name; uptr start; uptr size; |