From: Eli Zaretskii <eliz@gnu.org>
To: Thiago Jung Bauermann <bauerman@br.ibm.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [rfc] expose gdb values to python
Date: Fri, 26 Sep 2008 09:30:00 -0000 [thread overview]
Message-ID: <uiqsjl0i9.fsf@gnu.org> (raw)
In-Reply-To: <gbhfl6$34b$1@ger.gmane.org>
> From: Thiago Jung Bauermann <bauerman@br.ibm.com>
> Date: Thu, 25 Sep 2008 22:59:26 -0300
>
> gdb/doc/
> * gdb.texinfo. (Values From Inferior): New subsubsection.
This part is approved with a few comments, see below.
> +@node Values From Inferior
> +@subsubsection Values From Inferior
Please add some @cindex entry/entries here, which would be useful for
someone who will look for this stuff via the index.
> +@value{GDBN} provides values it obtains from the inferior program in an
> +object of type @code{gdb.Value}. This object keeps track of information
> +related to the value such as its type, the address where it is kept in
> +the inferior, and so on.
My assumption in reviewing Python-related manual sections is that the
reader will generally _not_ be a proficient Python programmer, but
rather someone who programs in another language, like C++ or Ada, and
whose use of Python in GDB is just so to get away with whatever
scripting the reader needs to craft for her current needs.
With that in mind, I think we should have as much examples and
specific concrete information in these sections as possible, to make
it easier for the reader to understand how to use these features
without too many detours into Python manuals. Abstract information,
such as references to Python types, will not alone reach that goal.
For example, in the above paragraph, would it help to describe the
specific elements and methods of `gdb.Value', or give a couple of
examples of their use in real life? You mention the type and address
of the inferior's value, but are there other useful members that the
reader would want to know about? And even for these 2, what kind of
data types are they?
> +The following method is provided:
> +
> +@defmethod Value dereference
> +If the @code{gdb.Value} object is of a pointer type, you can dereference
> +it using the @code{dereference} method. This gives you a new
> +@code{gdb.Value} object for the pointed-to contents.
> +@end defmethod
Again, a practical example of using this would be good to have.
Thanks.
next prev parent reply other threads:[~2008-09-26 9:30 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-12 6:05 Thiago Jung Bauermann
2008-09-20 21:29 ` Tom Tromey
2008-09-21 4:27 ` Daniel Jacobowitz
2008-09-25 4:33 ` Thiago Jung Bauermann
2008-09-25 11:47 ` Daniel Jacobowitz
2008-09-26 2:00 ` Thiago Jung Bauermann
2008-09-26 9:30 ` Eli Zaretskii [this message]
2008-09-28 1:19 ` Thiago Jung Bauermann
2008-09-28 18:19 ` Eli Zaretskii
2008-09-29 16:16 ` Thiago Jung Bauermann
2008-09-29 17:00 ` Daniel Jacobowitz
2008-09-30 4:07 ` Thiago Jung Bauermann
2008-09-30 12:41 ` Daniel Jacobowitz
2008-10-01 3:18 ` Thiago Jung Bauermann
2008-10-01 11:40 ` Daniel Jacobowitz
2008-09-29 18:52 ` Eli Zaretskii
2008-09-26 20:57 ` Daniel Jacobowitz
2008-10-01 5:39 ` Joel Brobecker
2008-10-04 22:14 ` Thiago Jung Bauermann
2008-09-25 4:49 ` Thiago Jung Bauermann
2008-09-26 23:08 ` Tom Tromey
2008-10-01 5:48 ` Joel Brobecker
2008-10-01 15:12 ` Tom Tromey
2008-10-01 16:04 ` Joel Brobecker
2008-10-04 22:21 ` Daniel Jacobowitz
2008-10-05 0:00 ` Tom Tromey
2008-10-06 18:49 ` Joel Brobecker
2008-10-06 21:15 ` Daniel Jacobowitz
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=uiqsjl0i9.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=bauerman@br.ibm.com \
--cc=gdb-patches@sources.redhat.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