tools/mac/symbolicate_crash.py
def _RunAtos(self, load_address, dsym_file, addresses):
    """Runs the atos with the provided arguments. |addresses| is used as stdin.
    Returns a list of symbol information in the same order as |addresses|."""
    args = ['atos', '-l', str(load_address), '-o', dsym_file]

    # Get the arch type. This is of the format |X86 (Native)|.
    if 'Code Type' in self.report_info:
      arch = self.report_info['Code Type'].lower().split(' ')
      if len(arch) == 2:
        arch = arch[0]
        if arch == 'x86':
          # The crash report refers to i386 as x86, but atos doesn't know what
          # that is.
          arch = 'i386'
        args.extend(['-arch', arch])

    proc = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
    addresses = map(hex, addresses)
    (stdout, stderr) = proc.communicate(' '.join(addresses))
    if proc.returncode:
      return None
    return stdout.rstrip().split('\n')
Runs the atos with the provided arguments. |addresses| is used as stdin.
    Returns a list of symbol information in the same order as |addresses|.
Runs the atos with the provided arguments. |addresses| is used as stdin.
Returns a list of symbol information in the same order as |addresses|.
Runs the atos with the provided arguments . |addresses| is used as stdin . Returns a list of symbol information in the same order as |addresses| .
def _RunAtos(self, load_address, dsym_file, addresses):
    args = ['atos', '-l', str(load_address), '-o', dsym_file]
    if 'Code Type' in self.report_info:
      arch = self.report_info['Code Type'].lower().split(' ')
      if len(arch) == 2:
        arch = arch[0]
        if arch == 'x86':
          arch = 'i386'
        args.extend(['-arch', arch])
    proc = subprocess.Popen(args, stdin=subprocess.PIPE, stdout=subprocess.PIPE)
    addresses = map(hex, addresses)
    (stdout, stderr) = proc.communicate(' '.join(addresses))
    if proc.returncode:
      return None
    return stdout.rstrip().split('\n')
def _RunAtos ( self , load_address , dsym_file , addresses ) : args = [ 'atos' , '-l' , str ( load_address ) , '-o' , dsym_file ] if 'Code Type' in self . report_info : arch = self . report_info [ 'Code Type' ] . lower ( ) . split ( ' ' ) if len ( arch ) == 2 : arch = arch [ 0 ] if arch == 'x86' : arch = 'i386' args . extend ( [ '-arch' , arch ] ) proc = subprocess . Popen ( args , stdin = subprocess . PIPE , stdout = subprocess . PIPE ) addresses = map ( hex , addresses ) ( stdout , stderr ) = proc . communicate ( ' ' . join ( addresses ) ) if proc . returncode : return None return stdout . rstrip ( ) . split ( '\n' )
Runs the atos with the provided arguments.
Runs the atos with the provided arguments .
"""Runs the atos with the provided arguments. |addresses| is used as stdin.
    Returns a list of symbol information in the same order as |addresses|.""" # Get the arch type. This is of the format |X86 (Native)|. # The crash report refers to i386 as x86, but atos doesn't know what # that is.
self
load_address
dsym_file
addresses