components/crash/content/tools/generate_breakpad_symbols.py
def GetSharedLibraryDependenciesLinux(binary):
  """Return absolute paths to all shared library dependencies of the binary.

  This implementation assumes that we're running on a Linux system."""
  ldd = subprocess.check_output(['ldd', binary]).decode('utf-8')
  lib_re = re.compile('\t.* => (.+) \(.*\)$')
  result = []
  for line in ldd.splitlines():
    m = lib_re.match(line)
    if m:
      result.append(os.path.abspath(m.group(1)))
  return result
Return absolute paths to all shared library dependencies of the binary.

  This implementation assumes that we're running on a Linux system.
Return absolute paths to all shared library dependencies of the binary.
This implementation assumes that we're running on a Linux system.
Return absolute paths to all shared library dependencies of the binary . This implementation assumes that we ' re running on a Linux system .
def GetSharedLibraryDependenciesLinux(binary):
  ldd = subprocess.check_output(['ldd', binary]).decode('utf-8')
  lib_re = re.compile('\t.* => (.+) \(.*\)$')
  result = []
  for line in ldd.splitlines():
    m = lib_re.match(line)
    if m:
      result.append(os.path.abspath(m.group(1)))
  return result
def GetSharedLibraryDependenciesLinux ( binary ) : ldd = subprocess . check_output ( [ 'ldd' , binary ] ) . decode ( 'utf-8' ) lib_re = re . compile ( '\t.* => (.+) \(.*\)$' ) result = [ ] for line in ldd . splitlines ( ) : m = lib_re . match ( line ) if m : result . append ( os . path . abspath ( m . group ( 1 ) ) ) return result
Return absolute paths to all shared library dependencies of the binary.
Return absolute paths to all shared library dependencies of the binary .
"""Return absolute paths to all shared library dependencies of the binary.

  This implementation assumes that we're running on a Linux system."""
binary