parameters: (self, wait_seconds=0, goto_file=True)
docstring: Handle any events that are queued from the inferior.
              Blocks for at most wait_seconds, or if wait_seconds == 0,
              process only events that are already queued.
docstring_summary: Handle any events that are queued from the inferior.
              Blocks for at most wait_seconds, or if wait_seconds == 0,
              process only events that are already queued.
docstring_tokens: Handle any events that are queued from the inferior . Blocks for at most wait_seconds or if wait_seconds == 0 process only events that are already queued .
function: def processPendingEvents(self, wait_seconds=0, goto_file=True):
          """ Handle any events that are queued from the inferior.
              Blocks for at most wait_seconds, or if wait_seconds == 0,
              process only events that are already queued.
          """
  
          status = None
          num_events_handled = 0
  
          if self.process is not None:
              event = lldb.SBEvent()
              old_state = self.process.GetState()
              new_state = None
              done = False
              if old_state == lldb.eStateInvalid or old_state == lldb.eStateExited:
                  # Early-exit if we are in 'boring' states
                  pass
              else:
                  while not done and self.processListener is not None:
                      if not self.processListener.PeekAtNextEvent(event):
                          if wait_seconds > 0:
                              # No events on the queue, but we are allowed to wait for wait_seconds
                              # for any events to show up.
                              self.processListener.WaitForEvent(
                                  wait_seconds, event)
                              new_state = lldb.SBProcess.GetStateFromEvent(event)
  
                              num_events_handled += 1
  
                          done = not self.processListener.PeekAtNextEvent(event)
                      else:
                          # An event is on the queue, process it here.
                          self.processListener.GetNextEvent(event)
                          new_state = lldb.SBProcess.GetStateFromEvent(event)
  
                          # continue if stopped after attaching
                          if old_state == lldb.eStateAttaching and new_state == lldb.eStateStopped:
                              self.process.Continue()
  
                          # If needed, perform any event-specific behaviour here
                          num_events_handled += 1
  
          if num_events_handled == 0:
              pass
          else:
              if old_state == new_state:
                  status = ""
              self.ui.update(self.target, status, self, goto_file)
function_tokens: def processPendingEvents ( self , wait_seconds = 0 , goto_file = True ) : status = None num_events_handled = 0 if self . process is not None : event = lldb . SBEvent ( ) old_state = self . process . GetState ( ) new_state = None done = False if old_state == lldb . eStateInvalid or old_state == lldb . eStateExited : # Early-exit if we are in 'boring' states pass else : while not done and self . processListener is not None : if not self . processListener . PeekAtNextEvent ( event ) : if wait_seconds > 0 : # No events on the queue, but we are allowed to wait for wait_seconds # for any events to show up. self . processListener . WaitForEvent ( wait_seconds , event ) new_state = lldb . SBProcess . GetStateFromEvent ( event ) num_events_handled += 1 done = not self . processListener . PeekAtNextEvent ( event ) else : # An event is on the queue, process it here. self . processListener . GetNextEvent ( event ) new_state = lldb . SBProcess . GetStateFromEvent ( event ) # continue if stopped after attaching if old_state == lldb . eStateAttaching and new_state == lldb . eStateStopped : self . process . Continue ( ) # If needed, perform any event-specific behaviour here num_events_handled += 1 if num_events_handled == 0 : pass else : if old_state == new_state : status = "" self . ui . update ( self . target , status , self , goto_file )