original_docstring: return a list of all PIDs
docstring: return a list of all PIDs
docstring_tokens: return a list of all PIDs
code: def pids():
  		"""return a list of all PIDs"""
  		pidhash_sym = gdb.lookup_global_symbol('g_pidhash')
  		pidhash_value = pidhash_sym.value()
  		pidhash_type = pidhash_sym.type
  		result = []
  		for i in range(pidhash_type.range()[0],pidhash_type.range()[1]):
  			entry = pidhash_value[i]
  			pid = int(entry['pid'])
  			if pid is not -1:
  				result.append(pid)
  		return result
code_tokens: def pids ( ) : pidhash_sym = gdb . lookup_global_symbol ( 'g_pidhash' ) pidhash_value = pidhash_sym . value ( ) pidhash_type = pidhash_sym . type result = [ ] for i in range ( pidhash_type . range ( ) [ 0 ] , pidhash_type . range ( ) [ 1 ] ) : entry = pidhash_value [ i ] pid = int ( entry [ 'pid' ] ) if pid is not - 1 : result . append ( pid ) return result
short_docstring: return a list of all PIDs
short_docstring_tokens: return a list of all PIDs
comment: """return a list of all PIDs"""