Lines Matching full:thread

23         """Test that the Python operating system plugin works correctly when single stepping a virtual thread"""
27 def verify_os_thread_registers(self, thread):
28 frame = thread.GetFrameAtIndex(0)
30 reg_value = thread.GetThreadID() + 1
66 # Make sure there are no OS plug-in created thread when we first stop
68 thread = process.GetThreadByID(0x111111111)
70 thread.IsValid(),
71 "Make sure there is no thread 0x111111111 before we load the python OS plug-in",
73 thread = process.GetThreadByID(0x222222222)
75 thread.IsValid(),
76 "Make sure there is no thread 0x222222222 before we load the python OS plug-in",
78 thread = process.GetThreadByID(0x333333333)
80 thread.IsValid(),
81 "Make sure there is no thread 0x333333333 before we load the python OS plug-in",
84 # Now load the python OS plug-in which should update the thread list and we should have
94 thread = process.GetThreadByID(0x111111111)
96 thread.IsValid(),
97 "Make sure there is a thread 0x111111111 after we load the python OS plug-in",
99 self.verify_os_thread_registers(thread)
100 thread = process.GetThreadByID(0x222222222)
102 thread.IsValid(),
103 "Make sure there is a thread 0x222222222 after we load the python OS plug-in",
105 self.verify_os_thread_registers(thread)
106 thread = process.GetThreadByID(0x333333333)
108 thread.IsValid(),
109 "Make sure there is a thread 0x333333333 after we load the python OS plug-in",
111 self.verify_os_thread_registers(thread)
118 thread = process.GetThreadByID(0x111111111)
120 thread.IsValid(),
121 "Make sure there is no thread 0x111111111 after we unload the python OS plug-in",
123 thread = process.GetThreadByID(0x222222222)
125 thread.IsValid(),
126 "Make sure there is no thread 0x222222222 after we unload the python OS plug-in",
128 thread = process.GetThreadByID(0x333333333)
130 thread.IsValid(),
131 "Make sure there is no thread 0x333333333 after we unload the python OS plug-in",
135 """Test that the Python operating system plugin works correctly and allows single stepping of a virtual thread that is backed by a real thread"""
163 # Make sure there are no OS plug-in created thread when we first stop
165 thread = process.GetThreadByID(0x111111111)
167 thread.IsValid(),
168 "Make sure there is no thread 0x111111111 before we load the python OS plug-in",
171 # Now load the python OS plug-in which should update the thread list and we should have
181 thread = process.GetThreadByID(0x111111111)
183 thread.IsValid(),
184 "Make sure there is a thread 0x111111111 after we load the python OS plug-in",
187 frame = thread.GetFrameAtIndex(0)
189 frame.IsValid(), "Make sure we get a frame from thread 0x111111111"
202 # Now single step thread 0x111111111 and make sure it does what we need
204 thread.StepOver()
206 frame = thread.GetFrameAtIndex(0)
208 frame.IsValid(), "Make sure we get a frame from thread 0x111111111"