From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20687 invoked by alias); 7 Oct 2011 23:05:25 -0000 Received: (qmail 20675 invoked by uid 22791); 7 Oct 2011 23:05:23 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RP_MATCHES_RCVD,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.67) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 07 Oct 2011 23:05:08 +0000 Received: from hpaq11.eem.corp.google.com (hpaq11.eem.corp.google.com [172.25.149.11]) by smtp-out.google.com with ESMTP id p97N56Kw028629; Fri, 7 Oct 2011 16:05:06 -0700 Received: from ruffy.mtv.corp.google.com (ruffy.mtv.corp.google.com [172.18.110.50]) by hpaq11.eem.corp.google.com with ESMTP id p97N54Ns010389; Fri, 7 Oct 2011 16:05:05 -0700 Received: by ruffy.mtv.corp.google.com (Postfix, from userid 67641) id 6EC122461AF; Fri, 7 Oct 2011 16:05:04 -0700 (PDT) To: eliz@gnu.org, gdb-patches@sourceware.org Subject: [commit] docs to register_pretty_printer `replace' arg Message-Id: <20111007230504.6EC122461AF@ruffy.mtv.corp.google.com> Date: Fri, 07 Oct 2011 23:05:00 -0000 From: dje@google.com (Doug Evans) X-System-Of-Record: true X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-10/txt/msg00213.txt.bz2 Heh, And here's the docs. ref: http://sourceware.org/ml/gdb-patches/2011-10/msg00212.html Eli, if you want any corrections, let me know. 2011-10-07 Doug Evans * gdb.texinfo (gdb.printing): Document new `replace' arg to register_pretty_printer. Index: doc/gdb.texinfo =================================================================== RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.871 diff -u -p -r1.871 gdb.texinfo --- doc/gdb.texinfo 7 Oct 2011 13:23:18 -0000 1.871 +++ doc/gdb.texinfo 7 Oct 2011 23:00:36 -0000 @@ -24001,8 +24001,11 @@ Utility class for handling multiple prin regular expressions. @xref{Writing a Pretty-Printer}, for an example. -@item register_pretty_printer (@var{obj}, @var{printer}) +@item register_pretty_printer (@var{obj}, @var{printer}, @var{replace}=False) Register @var{printer} with the pretty-printer list of @var{obj}. +If @var{replace} is @code{True} then any existing copy of the printer +is replaced. Otherwise a @code{RuntimeError} exception is raised +if a printer with the same name already exists. @end table @node gdb.types