* [commit] docs to register_pretty_printer `replace' arg
@ 2011-10-07 23:05 Doug Evans
2011-10-08 6:22 ` Eli Zaretskii
0 siblings, 1 reply; 2+ messages in thread
From: Doug Evans @ 2011-10-07 23:05 UTC (permalink / raw)
To: eliz, gdb-patches
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [commit] docs to register_pretty_printer `replace' arg
2011-10-07 23:05 [commit] docs to register_pretty_printer `replace' arg Doug Evans
@ 2011-10-08 6:22 ` Eli Zaretskii
0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2011-10-08 6:22 UTC (permalink / raw)
To: Doug Evans; +Cc: gdb-patches
> Date: Fri, 7 Oct 2011 16:05:04 -0700 (PDT)
> From: dje@google.com (Doug Evans)
>
> 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.
No need for corrections, this is fine.
Thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-10-08 6:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-10-07 23:05 [commit] docs to register_pretty_printer `replace' arg Doug Evans
2011-10-08 6:22 ` Eli Zaretskii
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox