tools/cygprofile/symbol_extractor.py
def SymbolInfosFromBinary(binary_filename):
  """Runs objdump to get all the symbols from a binary.

  Args:
    binary_filename: path to the binary.

  Returns:
    A list of SymbolInfo from the binary.
  """
  command = [_TOOL_PREFIX + 'objdump', '-t', '-w', binary_filename]
  try:
    p = subprocess.Popen(command, stdout=subprocess.PIPE)
  except OSError as error:
    logging.error("Failed to execute the command: path=%s, binary_filename=%s",
                  command[0], binary_filename)
    raise error

  try:
    return _SymbolInfosFromStream(p.stdout)
  finally:
    p.stdout.close()
    p.wait()
Runs objdump to get all the symbols from a binary.

  Args:
    binary_filename: path to the binary.

  Returns:
    A list of SymbolInfo from the binary.
  
Runs objdump to get all the symbols from a binary.
Runs objdump to get all the symbols from a binary .
def SymbolInfosFromBinary(binary_filename):
  command = [_TOOL_PREFIX + 'objdump', '-t', '-w', binary_filename]
  try:
    p = subprocess.Popen(command, stdout=subprocess.PIPE)
  except OSError as error:
    logging.error("Failed to execute the command: path=%s, binary_filename=%s",
                  command[0], binary_filename)
    raise error
  try:
    return _SymbolInfosFromStream(p.stdout)
  finally:
    p.stdout.close()
    p.wait()
def SymbolInfosFromBinary ( binary_filename ) : command = [ _TOOL_PREFIX + 'objdump' , '-t' , '-w' , binary_filename ] try : p = subprocess . Popen ( command , stdout = subprocess . PIPE ) except OSError as error : logging . error ( "Failed to execute the command: path=%s, binary_filename=%s" , command [ 0 ] , binary_filename ) raise error try : return _SymbolInfosFromStream ( p . stdout ) finally : p . stdout . close ( ) p . wait ( )
Runs objdump to get all the symbols from a binary.
Runs objdump to get all the symbols from a binary .
"""Runs objdump to get all the symbols from a binary.

  Args:
    binary_filename: path to the binary.

  Returns:
    A list of SymbolInfo from the binary.
  """
A list of SymbolInfo from the binary.
A list of SymbolInfo from the binary .
binary_filename
path to the binary.
path to the binary .