[Lldb-commits] [lldb] r257959 - On non-Windows platforms, asm int 3 generates an eStopReasonSignal.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Fri Jan 15 15:44:46 PST 2016
Author: zturner
Date: Fri Jan 15 17:44:45 2016
New Revision: 257959
URL: http://llvm.org/viewvc/llvm-project?rev=257959&view=rev
Log:
On non-Windows platforms, asm int 3 generates an eStopReasonSignal.
Modified:
lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/TestDebugBreak.py
Modified: lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/TestDebugBreak.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/TestDebugBreak.py?rev=257959&r1=257958&r2=257959&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/TestDebugBreak.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/TestDebugBreak.py Fri Jan 15 17:44:45 2016
@@ -26,7 +26,8 @@ class DebugBreakTestCase(TestBase):
# We've hit the first stop, so grab the frame.
self.assertEqual(process.GetState(), lldb.eStateStopped)
- thread = lldbutil.get_stopped_thread(process, lldb.eStopReasonException)
+ stop_reason = lldb.eStopReasonException if (getPlatform()=="windows") else lldb.eStopReasonSignal
+ thread = lldbutil.get_stopped_thread(process, stop_reason)
self.assertIsNotNone(thread, "Unable to find thread stopped at the __debugbreak()")
frame = thread.GetFrameAtIndex(0)
More information about the lldb-commits
mailing list