tools/linux/dump-static-initializers.py
def ParseNmLine(line):
  """Parse static initializers from a line of nm output.

  Given a line of nm output, parse static initializers as a
  (file, start, size, symbol) tuple."""
  match = nm_re.match(line)
  if match:
    addr, size, prefix, filename = match.groups()
    return (filename, int(addr, 16), int(size, 16), prefix+filename)
Parse static initializers from a line of nm output.

  Given a line of nm output, parse static initializers as a
  (file, start, size, symbol) tuple.
Parse static initializers from a line of nm output.
Given a line of nm output, parse static initializers as a
(file, start, size, symbol) tuple.
Parse static initializers from a line of nm output . Given a line of nm output parse static initializers as a ( file start size symbol ) tuple .
def ParseNmLine(line):
  match = nm_re.match(line)
  if match:
    addr, size, prefix, filename = match.groups()
    return (filename, int(addr, 16), int(size, 16), prefix+filename)
def ParseNmLine ( line ) : match = nm_re . match ( line ) if match : addr , size , prefix , filename = match . groups ( ) return ( filename , int ( addr , 16 ) , int ( size , 16 ) , prefix + filename )
Parse static initializers from a line of nm output.
Parse static initializers from a line of nm output .
"""Parse static initializers from a line of nm output.

  Given a line of nm output, parse static initializers as a
  (file, start, size, symbol) tuple."""
line