aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2011-10-07 23:01:54 +0000
committerDoug Evans <dje@google.com>2011-10-07 23:01:54 +0000
commit9c15afc467bfda43425d9d7f024168534b44396c (patch)
treeaeeee36562dc2779ee4d9920468ae43aff1e0dce /gdb/doc
parent1d5548f8de5f0b5e658b9b3a0b64dc5f7b602098 (diff)
downloadgdb-9c15afc467bfda43425d9d7f024168534b44396c.zip
gdb-9c15afc467bfda43425d9d7f024168534b44396c.tar.gz
gdb-9c15afc467bfda43425d9d7f024168534b44396c.tar.bz2
* gdb.texinfo (gdb.printing): Document new `replace' arg to
register_pretty_printer.
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo5
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index a59fa34..5a6e468 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -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
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index bb6e43c..af39ee9 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -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