tools/mac/dump-static-initializers.py
def ParseDsymutil(binary):
  """Given a binary, prints source and object filenames for files with
  static initializers.
  """

  child = subprocess.Popen(['tools/clang/dsymutil/bin/dsymutil', '-s', binary],
     stdout=subprocess.PIPE)
  for line in child.stdout:
    file_match = dsymutil_file_re.search(line)
    if file_match:
      current_filename = file_match.group(1)
    else:
      o_file_match = dsymutil_o_file_re.search(line)
      if o_file_match:
        current_o_filename = o_file_match.group(1)
      else:
        match = dsymutil_re.search(line)
        if match:
          print(current_filename)
          print(current_o_filename)
          print()
Given a binary, prints source and object filenames for files with
  static initializers.
  
Given a binary, prints source and object filenames for files with
static initializers.
Given a binary prints source and object filenames for files with static initializers .
def ParseDsymutil(binary):
  child = subprocess.Popen(['tools/clang/dsymutil/bin/dsymutil', '-s', binary],
     stdout=subprocess.PIPE)
  for line in child.stdout:
    file_match = dsymutil_file_re.search(line)
    if file_match:
      current_filename = file_match.group(1)
    else:
      o_file_match = dsymutil_o_file_re.search(line)
      if o_file_match:
        current_o_filename = o_file_match.group(1)
      else:
        match = dsymutil_re.search(line)
        if match:
          print(current_filename)
          print(current_o_filename)
          print()
def ParseDsymutil ( binary ) : child = subprocess . Popen ( [ 'tools/clang/dsymutil/bin/dsymutil' , '-s' , binary ] , stdout = subprocess . PIPE ) for line in child . stdout : file_match = dsymutil_file_re . search ( line ) if file_match : current_filename = file_match . group ( 1 ) else : o_file_match = dsymutil_o_file_re . search ( line ) if o_file_match : current_o_filename = o_file_match . group ( 1 ) else : match = dsymutil_re . search ( line ) if match : print ( current_filename ) print ( current_o_filename ) print ( )
Given a binary, prints source and object filenames for files with
static initializers.
Given a binary prints source and object filenames for files with static initializers .
"""Given a binary, prints source and object filenames for files with
  static initializers.
  """
binary