(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."""
        (object_re, name_re, subname_re) = parse_printer_regexps(arg)
        self.invoke1("global pretty-printers:", gdb.pretty_printers,
                     "global", object_re, name_re, subname_re)
        cp = gdb.current_progspace()
        self.invoke1("progspace %s pretty-printers:" % cp.filename,
                     cp.pretty_printers, "progspace",
                     object_re, name_re, subname_re)
        for objfile in gdb.objfiles():
            self.invoke1("  objfile %s pretty-printers:" % objfile.filename,
                         objfile.pretty_printers, objfile.filename,
                         object_re, name_re, subname_re)
def invoke ( self , arg , from_tty ) : ( object_re , name_re , subname_re ) = parse_printer_regexps ( arg ) self . invoke1 ( "global pretty-printers:" , gdb . pretty_printers , "global" , object_re , name_re , subname_re ) cp = gdb . current_progspace ( ) self . invoke1 ( "progspace %s pretty-printers:" % cp . filename , cp . pretty_printers , "progspace" , object_re , name_re , subname_re ) for objfile in gdb . objfiles ( ) : self . invoke1 ( "  objfile %s pretty-printers:" % objfile . filename , objfile . pretty_printers , objfile . filename , object_re , name_re , subname_re )