llvm-project/lldb/packages/Python/lldbsuite/test/functionalities/tsan
Devin Coughlin a10ab76b16 [tsan] Prefer mangled name looking up variable declaration for racy address
For Thread Sanitizer reports, LLDB tries to find a global variable declaration
corresponding to the racy address in order to provide a filename and line
number. This commit changes the lookup of the variable to use the mangled
name for lookup and fall back to the demangled version if unavailable. This
is needed to report locations of races on Swift global variables.

I've also added a test to make sure we look up C++ globals correctly.

rdar://problem/26459401

Differential Revision: http://reviews.llvm.org/D20760

llvm-svn: 271433
2016-06-01 21:32:45 +00:00
..
basic Decorate TSan tests with "@skipUnlessThreadSanitizer" which skips the tests if the selected compiler can't compile with "-fsanitize=thread". 2016-04-27 15:26:27 +00:00
cpp_global_location [tsan] Prefer mangled name looking up variable declaration for racy address 2016-06-01 21:32:45 +00:00
global_location Provide location information (file name, line number) in TSan reports about global variables. 2016-04-28 15:27:10 +00:00
multiple Reword ThreadSanitizer message for invalid mutex reports. 2016-05-22 14:32:45 +00:00
thread_leak Decorate TSan tests with "@skipUnlessThreadSanitizer" which skips the tests if the selected compiler can't compile with "-fsanitize=thread". 2016-04-27 15:26:27 +00:00
thread_numbers Decorate TSan tests with "@skipUnlessThreadSanitizer" which skips the tests if the selected compiler can't compile with "-fsanitize=thread". 2016-04-27 15:26:27 +00:00