Add a function to make it easier to debug a test failure caused by an unexpected stop reason. This is similar to the assertState helper function that I added in D127355.
Before:
self.assertEqual(stop_reason, lldb.eStopReasonInstrumentation) AssertionError: 5 != 10
After:
self.assertStopReason(stop_reason, lldb.eStopReasonInstrumentation) AssertionError: signal (5) != instrumentation (10)
This is more a general comment, but I'm very annoyed at how C/C++ enums are exposed to Python ... Now every time we add a new value to the enum we need to remember to update these helper function. The comment is not related specifically to this patch but I think we can do a better job here.