public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Andrew Burgess <andrew.burgess@embecosm.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCHv2] gdb/python: add facility to add values into the history
Date: Thu, 26 Aug 2021 12:40:18 +0300	[thread overview]
Message-ID: <83eeagtugt.fsf@gnu.org> (raw)
In-Reply-To: <20210826092002.GI2581@embecosm.com> (message from Andrew Burgess on Thu, 26 Aug 2021 10:20:02 +0100)

> Date: Thu, 26 Aug 2021 10:20:02 +0100
> From: Andrew Burgess <andrew.burgess@embecosm.com>
> Cc: gdb-patches@sourceware.org
> 
> * Eli Zaretskii <eliz@gnu.org> [2021-08-25 21:01:50 +0300]:
> 
> > > From: Andrew Burgess <andrew.burgess@embecosm.com>
> > > Date: Wed, 25 Aug 2021 18:27:19 +0100
> > > 
> > > +* Python API
> > > +
> > > +  ** New function gdb.add_history(), which takes a gdb.Value object
> > > +     and adds the value to GDB's history list.  An integer, the index
> >                  ^^^^^^^^^
> > "its value", right?
> 
> I don't know, that doesn't sound right to me.  'its value' seems to
> imply a value that belongs to someone/something, but I don't think
> that's the case here.
> 
> Maybe, '...takes a gdb.Value object and adds it to GDB's history list.' ?

No, that's worse, because you don't add the Python object to the
history.

How about if you use the same wording you suggested for the manual:
"the value it represents"?

>   Takes @var{value}, an instance of @code{gdb.Value} (@pxref{Values From
>   Inferior}), and appends the value this object represents to
>   @value{GDBN}'s value history (@pxref{Value History}) and return an
>   integer, its history number.  If @var{value} is not a
>   @code{gdb.Value}, it is is converted using the @code{gdb.Value}
>   constructor.  If @var{value} can't be converted to a @code{gdb.Value}
>   then a @code{TypeError} is raised.

This text is fine, thanks.

  reply	other threads:[~2021-08-26  9:40 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-20  8:48 [PATCH] " Andrew Burgess
2021-08-23 20:32 ` Tom Tromey
2021-08-25 17:27   ` [PATCHv2] " Andrew Burgess
2021-08-25 18:01     ` Eli Zaretskii
2021-08-26  9:20       ` Andrew Burgess
2021-08-26  9:40         ` Eli Zaretskii [this message]
2021-09-07  9:56           ` Andrew Burgess

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=83eeagtugt.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=andrew.burgess@embecosm.com \
    --cc=gdb-patches@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).