parameters: (self, symbols, address_tuples)
docstring: 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.
docstring_summary: 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.
docstring_tokens: 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 .
function: 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)
function_tokens: def _AddSymbolsToFrames ( self , symbols , address_tuples ) : 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 )