summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-01-15 23:44:45 +0000
committerZachary Turner <zturner@google.com>2016-01-15 23:44:45 +0000
commit778cec3e301e1505847e5b0ccd6e64caeb4e2541 (patch)
treef13046b8760b512d724e92258e87516a0ab467b1 /lldb/packages/Python/lldbsuite
parentefdccaa94fc1d0848c3f4a5a75aa533f2c79bc39 (diff)
downloadbcm5719-llvm-778cec3e301e1505847e5b0ccd6e64caeb4e2541.tar.gz
bcm5719-llvm-778cec3e301e1505847e5b0ccd6e64caeb4e2541.zip
On non-Windows platforms, asm int 3 generates an eStopReasonSignal.
llvm-svn: 257959
Diffstat (limited to 'lldb/packages/Python/lldbsuite')
-rw-r--r--lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/TestDebugBreak.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/TestDebugBreak.py b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/TestDebugBreak.py
index 45d56fe729d..21604044d07 100644
--- a/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/TestDebugBreak.py
+++ b/lldb/packages/Python/lldbsuite/test/functionalities/breakpoint/debugbreak/TestDebugBreak.py
@@ -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)
OpenPOWER on IntegriCloud