[Lldb-commits] [PATCH] D30007: [lldb] Provide API to know which sanitizer generated an eStopReasonInstrumentation
Jim Ingham via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Feb 22 16:35:52 PST 2017
jingham requested changes to this revision.
jingham added a comment.
This revision now requires changes to proceed.
Aargh, sorry. My queue is overflowing... I had one tiny comment about the tests. If you do that, then it will be fine to go in.
================
Comment at: packages/Python/lldbsuite/test/functionalities/asan/TestMemoryHistory.py:126-132
+ self.assertEqual(
+ process.GetSelectedThread().GetStopReason(),
+ lldb.eStopReasonInstrumentation)
+ self.assertEqual(
+ process.GetSelectedThread().GetStopReasonDataAtIndex(0),
+ lldb.eInstrumentationRuntimeTypeAddressSanitizer)
+
----------------
Can you add a check that GetStopReasonDataCount and only do the check for GetStopReasonDataAtIndex if this is 1? We have the ability to run the testsuite against older lldb's and it's good not to add failures if it can be avoided. Plus it's good to check that that call is returning a reasonable value.
================
Comment at: packages/Python/lldbsuite/test/functionalities/asan/TestReportData.py:65-67
+ self.assertEqual(process.
+ GetSelectedThread().GetStopReasonDataAtIndex(0),
+ lldb.eInstrumentationRuntimeTypeAddressSanitizer)
----------------
Same comment as above.
================
Comment at: packages/Python/lldbsuite/test/functionalities/tsan/basic/TestTsanBasic.py:57-59
+ self.assertEqual(
+ process.GetSelectedThread().GetStopReasonDataAtIndex(0),
+ lldb.eInstrumentationRuntimeTypeThreadSanitizer)
----------------
Same comment as above.
https://reviews.llvm.org/D30007
More information about the lldb-commits
mailing list