From 5cb6c6264121d03df771cb24cdb9db56b4b20c80 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 11 Jan 2013 07:23:51 +0000 Subject: tsan: symbolize global variables llvm-svn: 172181 --- compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.h') diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.h b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.h index abc84dfefc2..c26d621ea06 100644 --- a/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.h +++ b/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.h @@ -53,12 +53,21 @@ struct AddressInfo { } }; +struct DataInfo { + uptr address; + char *module; + uptr module_offset; + char *name; + uptr start; + uptr size; +}; + // Fills at most "max_frames" elements of "frames" with descriptions // for a given address (in all inlined functions). Returns the number // of descriptions actually filled. // This function should NOT be called from two threads simultaneously. uptr SymbolizeCode(uptr address, AddressInfo *frames, uptr max_frames); -bool SymbolizeData(uptr address, AddressInfo *frame); +bool SymbolizeData(uptr address, DataInfo *info); // Attempts to demangle the provided C++ mangled name. const char *Demangle(const char *Name); -- cgit v1.2.3