aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-08-10 20:25:30 +0000
committerTom Tromey <tromey@redhat.com>2010-08-10 20:25:30 +0000
commit464b3efb953f7989ec2275bc74398b723967f206 (patch)
tree9fc682f33bb8cddd998fad43582b3c7a58d1e6aa
parentc29c521f43a1f470355cc76391bb10ec2b73284a (diff)
downloadgdb-464b3efb953f7989ec2275bc74398b723967f206.zip
gdb-464b3efb953f7989ec2275bc74398b723967f206.tar.gz
gdb-464b3efb953f7989ec2275bc74398b723967f206.tar.bz2
* gdb.texinfo (Pretty Printing API): Document
gdb.default_visualizer.
-rw-r--r--gdb/doc/ChangeLog5
-rw-r--r--gdb/doc/gdb.texinfo10
2 files changed, 15 insertions, 0 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 94cec13..43ccbbe 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,5 +1,10 @@
2010-08-10 Tom Tromey <tromey@redhat.com>
+ * gdb.texinfo (Pretty Printing API): Document
+ gdb.default_visualizer.
+
+2010-08-10 Tom Tromey <tromey@redhat.com>
+
Revert gdb-add-index addition:
* gdb.texinfo (Index Files): Don't document gdb-add-index.
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index dc82158..c40c931 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -21146,6 +21146,16 @@ are peformed in this method and nothing is printed.
If the result is not one of these types, an exception is raised.
@end defop
+@value{GDBN} provides a function which can be used to look up the
+default pretty-printer for a @code{gdb.Value}:
+
+@findex gdb.default_visualizer
+@defun default_visualizer value
+This function takes a @code{gdb.Value} object as an argument. If a
+pretty-printer for this value exists, then it is returned. If no such
+printer exists, then this returns @code{None}.
+@end defun
+
@node Selecting Pretty-Printers
@subsubsection Selecting Pretty-Printers