From: Eli Zaretskii <eliz@gnu.org>
To: Tom Tromey <tromey@redhat.com>
Cc: vladimir@codesourcery.com, gdb-patches@sources.redhat.com
Subject: Re: Python pretty-printing [6/6]
Date: Thu, 21 May 2009 18:33:00 -0000 [thread overview]
Message-ID: <83zld6nw6b.fsf@gnu.org> (raw)
In-Reply-To: <m3k54axr5o.fsf@fleche.redhat.com>
> Cc: gdb-patches@sources.redhat.com
> From: Tom Tromey <tromey@redhat.com>
> Date: Thu, 21 May 2009 12:11:15 -0600
>
> It also has a small documentation change, to explain the rationale for
> the Python API.
Thanks. The documentation change is approved, with the following
minor comment:
> +If not @samp{None}, @var{visualizer} must be a Python expression.
> +This expression must evaluate to a callable object which accepts a
> +single argument. @value{GDBN} will call this object with the value of
> +the varobj @var{name} as an argument (this is done so that the same
> +Python pretty-printing code can be used for both the CLI and MI).
> +This function must return an object which conforms to the
> +pretty-printing interface (@pxref{Pretty Printing}).
You said VISUALIZER must evaluate to an _object_ that GDB will call,
but now you are saying that the _function_ must return something.
Suggest to say "When called, this object must return ...", to avoid
confusion about how did we get to a function.
OK with that change.
prev parent reply other threads:[~2009-05-21 18:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-02 20:58 Tom Tromey
2009-04-03 15:31 ` Eli Zaretskii
2009-04-09 1:14 ` Tom Tromey
2009-04-09 7:42 ` Eli Zaretskii
2009-05-18 5:25 ` Vladimir Prus
2009-05-18 23:34 ` Tom Tromey
2009-05-21 18:11 ` Tom Tromey
2009-05-21 18:33 ` Eli Zaretskii [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83zld6nw6b.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.com \
--cc=tromey@redhat.com \
--cc=vladimir@codesourcery.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox