summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.h
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2013-01-11 07:23:51 +0000
committerDmitry Vyukov <dvyukov@google.com>2013-01-11 07:23:51 +0000
commit5cb6c6264121d03df771cb24cdb9db56b4b20c80 (patch)
treeb1a31adef51fa1554194f7280324dbf302095a6e /compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.h
parentd08bd13ac8a560c4645e17e192ca07e1bdcd2895 (diff)
downloadbcm5719-llvm-5cb6c6264121d03df771cb24cdb9db56b4b20c80.tar.gz
bcm5719-llvm-5cb6c6264121d03df771cb24cdb9db56b4b20c80.zip
tsan: symbolize global variables
llvm-svn: 172181
Diffstat (limited to 'compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.h')
-rw-r--r--compiler-rt/lib/sanitizer_common/sanitizer_symbolizer.h11
1 files changed, 10 insertions, 1 deletions
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);
OpenPOWER on IntegriCloud