Lines Matching full:thread
17 """Test thread step out on one thread via command interpreter."""
28 """Test thread step out on all threads via command interpreter."""
36 """Test thread step out on one thread via Python API (dwarf)."""
67 for thread in self.process.threads:
68 if thread.GetIndexID() == self.step_out_thread.GetIndexID():
70 other_threads[thread.GetIndexID()] = thread.frames[0].line_entry
74 self.step_out_with_cmd("this-thread")
76 for thread in self.process.threads:
77 index_id = thread.GetIndexID()
81 thread.frames[0].line_entry.file.basename,
83 "Thread {0} moved by file".format(index_id),
86 thread.frames[0].line_entry.line,
88 "Thread {0} moved by line".format(index_id),
95 self.runCmd("thread select %d" % self.step_out_thread.GetIndexID())
96 self.runCmd("thread step-out -m %s" % run_mode)
107 "Step out changed selected thread.",
118 "Expected thread stop reason 'plancomplete', but got '%s'"
124 """Test single thread step out of a function."""
128 thread,
134 # We hit the breakpoint on at least one thread. If we hit it on both threads
135 # simultaneously, we can try the step out. Otherwise, suspend the thread
136 # that hit the breakpoint, and continue till the second thread hits
146 success = thread.Suspend()
147 self.assertTrue(success, "Couldn't suspend a thread")
149 self.assertEqual(len(breakpoint_threads), 2, "Second thread stopped")
150 success = thread.Resume()
151 self.assertTrue(success, "Couldn't resume a thread")
155 # Step out of thread stopped at breakpoint