(self, arg, from_tty)
GDB calls this to perform the command.
GDB calls this to perform the command.
GDB calls this to perform the command .
def invoke(self, arg, from_tty):
        """GDB calls this to perform the command."""
        for name in arg.split():
            ok = False
            for objfile in gdb.objfiles():
                if self.set_some(name, objfile.type_printers):
                    ok = True
            if self.set_some(name, gdb.current_progspace().type_printers):
                ok = True
            if self.set_some(name, gdb.type_printers):
                ok = True
            if not ok:
                print ("No type printer named '%s'" % name)
def invoke ( self , arg , from_tty ) : for name in arg . split ( ) : ok = False for objfile in gdb . objfiles ( ) : if self . set_some ( name , objfile . type_printers ) : ok = True if self . set_some ( name , gdb . current_progspace ( ) . type_printers ) : ok = True if self . set_some ( name , gdb . type_printers ) : ok = True if not ok : print ( "No type printer named '%s'" % name )