parameters: (command_args)
docstring: Extract all globals from any arguments which must be paths to object files.
docstring_summary: Extract all globals from any arguments which must be paths to object files.
docstring_tokens: Extract all globals from any arguments which must be paths to object files .
function: def globals(command_args):
      '''Extract all globals from any arguments which must be paths to object files.'''
      usage = "usage: %prog [options] <PATH> [PATH ...]"
      description = '''This command will find all globals in the specified object file and return an list() of lldb.SBValue objects (which might be empty).'''
      parser = optparse.OptionParser(
          description=description,
          prog='globals',
          usage=usage)
      parser.add_option(
          '-v',
          '--verbose',
          action='store_true',
          dest='verbose',
          help='display verbose debug info',
          default=False)
      parser.add_option(
          '-a',
          '--arch',
          type='string',
          metavar='arch',
          dest='arch',
          help='Specify an architecture (or triple) to use when extracting from a file.')
      parser.add_option(
          '-p',
          '--platform',
          type='string',
          metavar='platform',
          dest='platform',
          help='Specify the platform to use when creating the debug target. Valid values include "localhost", "darwin-kernel", "ios-simulator", "remote-freebsd", "remote-macosx", "remote-ios", "remote-linux".')
      try:
          (options, args) = parser.parse_args(command_args)
      except:
          return
  
      for path in args:
          get_globals(path, options)
function_tokens: def globals ( command_args ) : usage = "usage: %prog [options] <PATH> [PATH ...]" description = '''This command will find all globals in the specified object file and return an list() of lldb.SBValue objects (which might be empty).''' parser = optparse . OptionParser ( description = description , prog = 'globals' , usage = usage ) parser . add_option ( '-v' , '--verbose' , action = 'store_true' , dest = 'verbose' , help = 'display verbose debug info' , default = False ) parser . add_option ( '-a' , '--arch' , type = 'string' , metavar = 'arch' , dest = 'arch' , help = 'Specify an architecture (or triple) to use when extracting from a file.' ) parser . add_option ( '-p' , '--platform' , type = 'string' , metavar = 'platform' , dest = 'platform' , help = 'Specify the platform to use when creating the debug target. Valid values include "localhost", "darwin-kernel", "ios-simulator", "remote-freebsd", "remote-macosx", "remote-ios", "remote-linux".' ) try : ( options , args ) = parser . parse_args ( command_args ) except : return for path in args : get_globals ( path , options )