(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."""
        sep = ''
        for objfile in gdb.objfiles():
            if objfile.type_printers:
                print ("%sType printers for %s:" % (sep, objfile.name))
                self.list_type_printers(objfile.type_printers)
                sep = '\n'
        if gdb.current_progspace().type_printers:
            print ("%sType printers for program space:" % sep)
            self.list_type_printers(gdb.current_progspace().type_printers)
            sep = '\n'
        if gdb.type_printers:
            print ("%sGlobal type printers:" % sep)
            self.list_type_printers(gdb.type_printers)
def invoke ( self , arg , from_tty ) : sep = '' for objfile in gdb . objfiles ( ) : if objfile . type_printers : print ( "%sType printers for %s:" % ( sep , objfile . name ) ) self . list_type_printers ( objfile . type_printers ) sep = '\n' if gdb . current_progspace ( ) . type_printers : print ( "%sType printers for program space:" % sep ) self . list_type_printers ( gdb . current_progspace ( ) . type_printers ) sep = '\n' if gdb . type_printers : print ( "%sGlobal type printers:" % sep ) self . list_type_printers ( gdb . type_printers )