parameters: (val)
return_statement: return None
docstring: Look-up and return a pretty-printer that can print va.
docstring_summary: Look-up and return a pretty-printer that can print va.
docstring_tokens: Look - up and return a pretty - printer that can print va .
function: def lookup_function(val):
  	"Look-up and return a pretty-printer that can print va."
  	
  	type = val.type
  	
  	if type.code == gdb.TYPE_CODE_REF:
  		type = type.target()
  	
  	type = type.unqualified().strip_typedefs()
  	
  	typename = type.tag
  	if typename == None:
  		return None
  	
  	for function in pretty_printers_dict:
  		if function.search(typename):
  			return pretty_printers_dict[function](val)
  	
  	return None
function_tokens: def lookup_function ( val ) : type = val . type if type . code == gdb . TYPE_CODE_REF : type = type . target ( ) type = type . unqualified ( ) . strip_typedefs ( ) typename = type . tag if typename == None : return None for function in pretty_printers_dict : if function . search ( typename ) : return pretty_printers_dict [ function ] ( val ) return None