tools/mac/symbolicate_crash.py
def _AddSymbolsToFrames(self, symbols, address_tuples):
    """Takes a single value (the list) from _CollectAddressesForImages and does
    a smart-zip with the data returned by atos in |symbols|. Note that the
    indices must match for this to succeed."""
    if len(symbols) != len(address_tuples):
      print('symbols do not match')

    # Each line of output from atos is in this format:
    # |<symbol> (in <image>) (<file>:<line>)|.
    line_regex = re.compile('(.+) \(in (.+)\) (\((.+):([0-9]+)\))?')

    # Zip the two data sets together.
    for i in range(len(symbols)):
      symbol_parts = line_regex.match(symbols[i])
      if not symbol_parts:
        continue  # Error.
      frame = address_tuples[i][0]
      frame.symbol = symbol_parts.group(1)
      frame.image = symbol_parts.group(2)
      frame.file_name = symbol_parts.group(4)
      frame.line_number = symbol_parts.group(5)
Takes a single value (the list) from _CollectAddressesForImages and does
    a smart-zip with the data returned by atos in |symbols|. Note that the
    indices must match for this to succeed.
Takes a single value (the list) from _CollectAddressesForImages and does
a smart-zip with the data returned by atos in |symbols|. Note that the
indices must match for this to succeed.
Takes a single value ( the list ) from _CollectAddressesForImages and does a smart - zip with the data returned by atos in |symbols| . Note that the indices must match for this to succeed .
def _AddSymbolsToFrames(self, symbols, address_tuples):
    if len(symbols) != len(address_tuples):
      print('symbols do not match')
    line_regex = re.compile('(.+) \(in (.+)\) (\((.+):([0-9]+)\))?')
    for i in range(len(symbols)):
      symbol_parts = line_regex.match(symbols[i])
      if not symbol_parts:
        continue  
      frame = address_tuples[i][0]
      frame.symbol = symbol_parts.group(1)
      frame.image = symbol_parts.group(2)
      frame.file_name = symbol_parts.group(4)
      frame.line_number = symbol_parts.group(5)
def _AddSymbolsToFrames ( self , symbols , address_tuples ) : if len ( symbols ) != len ( address_tuples ) : print ( 'symbols do not match' ) line_regex = re . compile ( '(.+) \(in (.+)\) (\((.+):([0-9]+)\))?' ) for i in range ( len ( symbols ) ) : symbol_parts = line_regex . match ( symbols [ i ] ) if not symbol_parts : continue frame = address_tuples [ i ] [ 0 ] frame . symbol = symbol_parts . group ( 1 ) frame . image = symbol_parts . group ( 2 ) frame . file_name = symbol_parts . group ( 4 ) frame . line_number = symbol_parts . group ( 5 )
Takes a single value (the list) from _CollectAddressesForImages and does
a smart-zip with the data returned by atos in |symbols|.
Takes a single value ( the list ) from _CollectAddressesForImages and does a smart - zip with the data returned by atos in |symbols| .
"""Takes a single value (the list) from _CollectAddressesForImages and does
    a smart-zip with the data returned by atos in |symbols|. Note that the
    indices must match for this to succeed.""" # Each line of output from atos is in this format: # |<symbol> (in <image>) (<file>:<line>)|. # Zip the two data sets together. # Error.
self
symbols
address_tuples