parameters: (self, process_name)
docstring: Handle process attach.
docstring_summary: Handle process attach.
docstring_tokens: Handle process attach .
function: def doAttach(self, process_name):
          """ Handle process attach.  """
          error = lldb.SBError()
  
          self.processListener = lldb.SBListener("process_event_listener")
          self.target = self.dbg.CreateTarget('')
          self.process = self.target.AttachToProcessWithName(
              self.processListener, process_name, False, error)
          if not error.Success():
              sys.stderr.write("Error during attach: " + str(error))
              return
  
          self.ui.activate()
          self.pid = self.process.GetProcessID()
  
          print "Attached to %s (pid=%d)" % (process_name, self.pid)
function_tokens: def doAttach ( self , process_name ) : error = lldb . SBError ( ) self . processListener = lldb . SBListener ( "process_event_listener" ) self . target = self . dbg . CreateTarget ( '' ) self . process = self . target . AttachToProcessWithName ( self . processListener , process_name , False , error ) if not error . Success ( ) : sys . stderr . write ( "Error during attach: " + str ( error ) ) return self . ui . activate ( ) self . pid = self . process . GetProcessID ( ) print "Attached to %s (pid=%d)" % ( process_name , self . pid )