(self, val)
return None
Lookup the pretty-printer for the provided value.
Lookup the pretty-printer for the provided value.
Lookup the pretty - printer for the provided value .
def __call__(self, val):
        """Lookup the pretty-printer for the provided value."""

        # Get the type name.
        typename = gdb.types.get_basic_type(val.type).tag
        if not typename:
            return None

        # Iterate over table of type regexps to determine
        # if a printer is registered for that type.
        # Return an instantiation of the printer if found.
        for printer in self.subprinters:
            if printer.enabled and printer.compiled_re.search(typename):
                return printer.gen_printer(val)

        # Cannot find a pretty printer.  Return None.
        return None
def __call__ ( self , val ) : # Get the type name. typename = gdb . types . get_basic_type ( val . type ) . tag if not typename : return None # Iterate over table of type regexps to determine # if a printer is registered for that type. # Return an instantiation of the printer if found. for printer in self . subprinters : if printer . enabled and printer . compiled_re . search ( typename ) : return printer . gen_printer ( val ) # Cannot find a pretty printer.  Return None. return None