230 newThread.name = name |
230 newThread.name = name |
231 self.threads[id] = newThread |
231 self.threads[id] = newThread |
232 |
232 |
233 # adjust current frame |
233 # adjust current frame |
234 if "__pypy__" not in sys.builtin_module_names: |
234 if "__pypy__" not in sys.builtin_module_names: |
235 self.threads[id].currentFrame = self.getExecutedFrame(frame) |
235 # Don't update with None |
|
236 currentFrame = self.getExecutedFrame(frame) |
|
237 if currentFrame is not None: |
|
238 self.threads[id].currentFrame = currentFrame |
236 |
239 |
237 # Clean up obsolet because terminated threads |
240 # Clean up obsolet because terminated threads |
238 self.threads = {id_: thrd for id_, thrd in self.threads.items() |
241 self.threads = {id_: thrd for id_, thrd in self.threads.items() |
239 if id_ in frames} |
242 if id_ in frames} |
240 |
243 |