From: Tom Tromey Date: Tue, 10 Aug 2010 20:24:54 +0000 (+0000) Subject: * gdb.texinfo (Pretty Printing API): Document X-Git-Tag: gdb_7_2-2010-09-02-release~43 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f4b2ff751ebda535f2313958450f27dfe2a95d91;p=thirdparty%2Fbinutils-gdb.git * gdb.texinfo (Pretty Printing API): Document gdb.default_visualizer. --- diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 41e15ef7141..1ed95eedc38 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2010-08-10 Tom Tromey + + * gdb.texinfo (Pretty Printing API): Document + gdb.default_visualizer. + 2010-08-09 Jan Kratochvil Eli Zaretskii diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 16a8a775732..09c39ebfa70 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -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