* RFA: document a python function
@ 2010-08-10 18:05 Tom Tromey
2010-08-10 19:54 ` Eli Zaretskii
0 siblings, 1 reply; 3+ messages in thread
From: Tom Tromey @ 2010-08-10 18:05 UTC (permalink / raw)
To: gdb-patches
A user noticed that gdb.texinfo does not document the Python function
gdb.default_visualizer.
This patch adds documentation for it.
Please review.
Tom
2010-08-10 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Pretty Printing API): Document
gdb.default_visualizer.
Index: doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.748
diff -u -r1.748 gdb.texinfo
--- doc/gdb.texinfo 7 Aug 2010 15:00:38 -0000 1.748
+++ doc/gdb.texinfo 10 Aug 2010 18:03:59 -0000
@@ -21156,6 +21156,16 @@
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RFA: document a python function
2010-08-10 18:05 RFA: document a python function Tom Tromey
@ 2010-08-10 19:54 ` Eli Zaretskii
2010-08-10 20:22 ` Tom Tromey
0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2010-08-10 19:54 UTC (permalink / raw)
To: Tom Tromey; +Cc: gdb-patches
> From: Tom Tromey <tromey@redhat.com>
> Date: Tue, 10 Aug 2010 12:05:28 -0600
>
> A user noticed that gdb.texinfo does not document the Python function
> gdb.default_visualizer.
>
> This patch adds documentation for it.
>
> Please review.
OK. Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: RFA: document a python function
2010-08-10 19:54 ` Eli Zaretskii
@ 2010-08-10 20:22 ` Tom Tromey
0 siblings, 0 replies; 3+ messages in thread
From: Tom Tromey @ 2010-08-10 20:22 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gdb-patches
>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
Eli> OK. Thanks.
Thanks. I will check it in soon.
I am also going to commit it to the 7.2 branch.
Tom
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-08-10 20:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-10 18:05 RFA: document a python function Tom Tromey
2010-08-10 19:54 ` Eli Zaretskii
2010-08-10 20:22 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).