* gdb.texinfo (gdb.printing): Document new `replace' arg to
register_pretty_printer.
This commit is contained in:
parent
1d5548f8de
commit
9c15afc467
2 changed files with 9 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue