Home | History | Annotate | Download | only in python

Lines Matching refs:thread

66     """Class that encapsulates actions to take when a thread stops for a reason."""
70 def ThreadStopped (self, thread):
71 assert False, "performance.Action.ThreadStopped(self, thread) must be overridden in a subclass"
76 def ThreadStopped (self, thread):
77 if thread.GetStopReason() == lldb.eStopReasonPlanComplete:
80 self.callback (self.callback_owner, thread)
82 self.callback (thread)
115 def ThreadStopped (self, thread):
116 if thread.GetStopReason() == lldb.eStopReasonBreakpoint:
118 if bp.GetID() == thread.GetStopReasonDataAtIndex(0):
121 self.callback (self.callback_owner, thread)
123 self.callback (thread)
133 self.thread = None
179 for thread in self.process:
180 frame = thread.GetFrameAtIndex(0)
183 stop_reason = thread.GetStopReason()
185 print "tid = %#x pc = %#x " % (thread.GetThreadID(),frame.GetPC()),
199 print "thread exiting"
213 bp_id = thread.GetStopReasonDataAtIndex(0)
214 bp_loc_id = thread.GetStopReasonDataAtIndex(1)
220 print "watchpoint id = %d" % (thread.GetStopReasonDataAtIndex(0))
224 print "signal %d" % (thread.GetStopReasonDataAtIndex(0))
227 self.thread = thread
228 selected_thread = self.process.SetSelectedThread(thread)
231 action.ThreadStopped (thread)
291 def BreakpointHit (self, thread):
292 bp_id = thread.GetStopReasonDataAtIndex(0)
293 loc_id = thread.GetStopReasonDataAtIndex(1)
294 print "Breakpoint %i.%i hit: %s" % (bp_id, loc_id, thread.process.target.FindBreakpointByID(bp_id))
295 thread.StepOver()
297 def PlanComplete (self, thread):
299 thread.StepOver()
302 thread.process.Kill()