* gdb.texinfo (gdb.printing): Document new `replace' arg to
authorDoug Evans <dje@google.com>
Fri, 7 Oct 2011 23:01:54 +0000 (23:01 +0000)
committerDoug Evans <dje@google.com>
Fri, 7 Oct 2011 23:01:54 +0000 (23:01 +0000)
register_pretty_printer.

gdb/doc/ChangeLog
gdb/doc/gdb.texinfo

index a59fa34f84da0ddb5b753e0309aa287d1b94ff86..5a6e468ead7a3c95023409d3ea41a3868c54e50b 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-07  Doug Evans  <dje@google.com>
+
+       * gdb.texinfo (gdb.printing): Document new `replace' arg to
+       register_pretty_printer.
+
 2011-10-07  Phil Muldoon  <pmuldoon@redhat.com>
 
        PR python/12930
index bb6e43c44147fdd6ba0e7665b7ff172737ecfa24..af39ee9ed97659f524d396779ffac59aa63d58f0 100644 (file)
@@ -24001,8 +24001,11 @@ Utility class for handling multiple printers, all recognized via
 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