parameters: (self, debugger)
return_statement: return None
docstring: Create a target using the information in this Image object.
docstring_summary: Create a target using the information in this Image object.
docstring_tokens: Create a target using the information in this Image object .
function: def create_target(self, debugger):
          '''Create a target using the information in this Image object.'''
          if self.unavailable:
              return None
  
          if self.locate_module_and_debug_symbols():
              resolved_path = self.get_resolved_path()
              path_spec = lldb.SBFileSpec(resolved_path)
              error = lldb.SBError()
              target = debugger.CreateTarget(
                  resolved_path, self.arch, None, False, error)
              if target:
                  self.module = target.FindModule(path_spec)
                  if self.has_section_load_info():
                      err = self.load_module(target)
                      if err:
                          print('ERROR: ', err)
                  return target
              else:
                  print('error: unable to create a valid target for (%s) "%s"' % (self.arch, self.path))
          else:
              print('error: unable to locate main executable (%s) "%s"' % (self.arch, self.path))
          return None
function_tokens: def create_target ( self , debugger ) : if self . unavailable : return None if self . locate_module_and_debug_symbols ( ) : resolved_path = self . get_resolved_path ( ) path_spec = lldb . SBFileSpec ( resolved_path ) error = lldb . SBError ( ) target = debugger . CreateTarget ( resolved_path , self . arch , None , False , error ) if target : self . module = target . FindModule ( path_spec ) if self . has_section_load_info ( ) : err = self . load_module ( target ) if err : print ( 'ERROR: ' , err ) return target else : print ( 'error: unable to create a valid target for (%s) "%s"' % ( self . arch , self . path ) ) else : print ( 'error: unable to locate main executable (%s) "%s"' % ( self . arch , self . path ) ) return None