]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* gdb.texinfo (Pretty Printing API): Document
authorTom Tromey <tromey@redhat.com>
Tue, 10 Aug 2010 20:24:54 +0000 (20:24 +0000)
committerTom Tromey <tromey@redhat.com>
Tue, 10 Aug 2010 20:24:54 +0000 (20:24 +0000)
gdb.default_visualizer.

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

index 41e15ef71417b9c7f1fae00757171ee9ffed671b..1ed95eedc381eb19caa3d4dbcb09344563923f22 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-10  Tom Tromey  <tromey@redhat.com>
+
+       * gdb.texinfo (Pretty Printing API): Document
+       gdb.default_visualizer.
+
 2010-08-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
            Eli Zaretskii <eliz@gnu.org>
 
index 16a8a77573210f42996cb06265b8b0525375e16e..09c39ebfa704d3a8ad68a1710f9bf5198c0cfa46 100644 (file)
@@ -21088,6 +21088,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