public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jan Vrany <jan.vrany@labware.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 5/5] gdb/python: document GDB/MI commands in Python
Date: Tue, 18 Jan 2022 17:09:53 +0200	[thread overview]
Message-ID: <83ee55ulku.fsf@gnu.org> (raw)
In-Reply-To: <41f128101c14a2794decf8a25b5a3940234d68e6.camel@labware.com> (message from Jan Vrany on Tue, 18 Jan 2022 12:34:00 +0000)

> From: Jan Vrany <jan.vrany@labware.com>
> Cc: Eli Zaretskii <eliz@gnu.org>
> Date: Tue, 18 Jan 2022 12:34:00 +0000
> 
> > You've added a second copy of the last two index entries, without any
> > qualifier.  This will cause makeinfo to generate index entries
> > "commands in python" and "commands is python<2>", without giving the
> > reader any clue what is the difference between these two instances.
> > 
> > It is much better to qualify each instance with some unique
> > qualifier.  Here, I'd use ", CLI" and ", GDB/MI" as the qualifiers.
> 
> I see. However I'm not sure what do you mean by "qualifiers". 
> In new version (which I'll submit  once I get review on
> other patches in this series) I changed index entries to 
> 
> @node CLI Commands In Python
> @subsubsection CLI Commands In Python
> 
> @cindex commands in python @subentry CLI
> @cindex python commands @subentry CLI

@subentry is a very new feature, so I'd prefer not to use it yet, as
that would force everyone who builds GDB to upgrade.

Something much simpler, like this, will do:

  @cindex commands in python, in CLI
  @cindex commands in python, in GDB/MI

> > > +You can implement new @sc{GDB/MI} (@pxref{GDB/MI}) commands in Python.
> > 
> > Same comment as for the NEWS entry.  With a possibly similar solution.
> 
> This phrasing with "new" (both here and in NEWS) was taken from entries
> for CLI commands. For NEWS, I have changed it as you suggested, it's better.
> 
> But for manual it makes less sense to me. Wording "It is now possible to add GDB/MI 
> commands implemented in Python." sounds to me as to suggest this is some
> new feature.

Yes, of course: you need to drop the "now" part in the manual.  It is
only appropriate in NEWS.  But the rest reads well here.  What
problems do you have with

  It is possible to add GDB/MI commands implemented in Python.

  reply	other threads:[~2022-01-18 15:10 UTC|newest]

Thread overview: 41+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-17 12:44 [PATCH 0/5] create GDB/MI commands using python Jan Vrany
2022-01-17 12:44 ` [PATCH 1/5] gdb/mi: introduce new class mi_command_builtin Jan Vrany
2022-01-17 12:44 ` [PATCH 2/5] gdb/python: create GDB/MI commands using python Jan Vrany
2022-02-06 16:52   ` Lancelot SIX
2022-01-17 12:44 ` [PATCH 3/5] gdb/python: allow redefinition of python GDB/MI commands Jan Vrany
2022-02-06 17:13   ` Lancelot SIX
2022-02-06 20:33     ` Simon Marchi
2022-02-06 20:44       ` Jan Vrany
2022-02-06 20:46         ` Simon Marchi
2022-02-07  9:46         ` Lancelot SIX
2022-01-17 12:44 ` [PATCH 4/5] gdb/testsuite: add tests for python-defined MI commands Jan Vrany
2022-01-17 12:44 ` [PATCH 5/5] gdb/python: document GDB/MI commands in Python Jan Vrany
2022-01-17 13:15   ` Eli Zaretskii
2022-01-17 13:20   ` Eli Zaretskii
2022-01-18 12:34     ` Jan Vrany
2022-01-18 15:09       ` Eli Zaretskii [this message]
2022-01-18 13:55 ` [PATCH 0/5] create GDB/MI commands using python Andrew Burgess
2022-01-18 15:13   ` Jan Vrany
2022-01-21 15:22     ` Andrew Burgess
2022-01-24 12:59       ` Jan Vrany
2022-02-02 16:57         ` Andrew Burgess
2022-02-06 21:16       ` Simon Marchi
2022-02-07 15:56         ` [PATCHv2] gdb/python/mi: create MI " Andrew Burgess
2022-02-08 15:16           ` Simon Marchi
2022-02-09 12:25             ` [PATCHv3] " Andrew Burgess
2022-02-09 14:08               ` Simon Marchi
2022-02-10 18:26                 ` Andrew Burgess
2022-02-13 14:27                   ` Joel Brobecker
2022-02-13 21:46                     ` Jan Vrany
2022-02-24 10:37               ` [PATCHv4] " Andrew Burgess
2022-02-25 19:22                 ` Tom Tromey
2022-02-25 19:31                   ` Jan Vrany
2022-02-28 16:48                 ` [PATCHv5] " Andrew Burgess
2022-02-28 18:40                   ` Tom Tromey
2022-03-13  4:47                   ` Joel Brobecker
2022-03-14 14:13                     ` Andrew Burgess
2022-03-16  8:10                       ` Joel Brobecker
2022-03-16 12:29                       ` Simon Marchi
2022-03-18 15:06                   ` Simon Marchi
2022-03-18 16:12                     ` Andrew Burgess
2022-03-18 19:57                       ` Simon Marchi

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=83ee55ulku.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.vrany@labware.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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).