Lines Matching full:thread

3 won't make them run, even if we call an expression on the thread.
17 """Test that debugserver doesn't disturb the suspend count of a thread
19 on other threads, or calling functions both on the suspended thread and
31 def try_an_expression(self, thread, correct_value, test_bp): argument
32 frame = thread.frames[0]
40 # Again, make sure we didn't let the suspend thread breakpoint run:
44 "First expression allowed the suspend thread to run",
53 (self.target, process, thread, bkpt) = lldbutil.run_to_source_breakpoint(
57 # Make in the running thread, so the we will have to stop a number of times
59 # run expressions as well. Make sure we don't let the suspended thread run
63 # Make a breakpoint that we will hit when the running thread exits:
66 # Make a breakpoint in the suspended thread. We should not hit this till we
67 # resume it after joining the running thread.
68 st_bp = self.make_bkpt("We allowed the suspend thread to run")
70 # Make a breakpoint after pthread_join of the suspend thread to ensure
71 # that we didn't keep the thread from exiting normally
73 " Break here to make sure the thread exited normally"
79 # Make sure we didn't hit the suspend thread breakpoint:
81 st_bp.GetHitCount(), 0, "Continue allowed the suspend thread to run"
84 # Now try an expression on the running thread:
91 # Try an expression on the suspended thread:
92 thread = lldb.SBThread()
93 for thread in process.threads:
94 th_name = thread.GetName()
99 self.assertTrue(thread.IsValid(), "We found the suspend thread.")
100 self.try_an_expression(thread, 1, st_bp)
102 # Now set the running thread breakpoint to auto-continue and let it
103 # run a bit to make sure we still don't let the suspend thread run.
108 st_bp.GetHitCount(), 0, "Continue again let suspended thread run"
113 self.assertEqual(len(threads), 1, "The thread resumed successfully")