Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: dje@google.com (Doug Evans)
To: eliz@gnu.org, gdb-patches@sourceware.org
Subject: [commit] docs to register_pretty_printer `replace' arg
Date: Fri, 07 Oct 2011 23:05:00 -0000	[thread overview]
Message-ID: <20111007230504.6EC122461AF@ruffy.mtv.corp.google.com> (raw)

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  <dje@google.com>

	* 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


             reply	other threads:[~2011-10-07 23:05 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-07 23:05 Doug Evans [this message]
2011-10-08  6:22 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20111007230504.6EC122461AF@ruffy.mtv.corp.google.com \
    --to=dje@google.com \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox