public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Tom Tromey <tromey@adacore.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH 1/2] Introduce gdb.ValuePrinter
Date: Mon, 11 Sep 2023 22:04:36 +0300	[thread overview]
Message-ID: <83y1hcpm4b.fsf@gnu.org> (raw)
In-Reply-To: <20230911-pp-v2-v1-1-c4e0d40c8b63@adacore.com> (message from Tom Tromey via Gdb-patches on Mon, 11 Sep 2023 11:28:25 -0600)

> Date: Mon, 11 Sep 2023 11:28:25 -0600
> From: Tom Tromey via Gdb-patches <gdb-patches@sourceware.org>
> 
> There was an earlier thread about adding new methods to
> pretty-printers:

Thanks.

> diff --git a/gdb/NEWS b/gdb/NEWS
> index 98ff00d5efc..cca86d82de8 100644
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -286,6 +286,11 @@ info main
>       might be array- or string-like, even if they do not have the
>       corresponding type code.
>  
> +  ** gdb.ValuePrinter is a new class that can be used as the base
> +     class for the result of applying a pretty-printer.  As a base
> +     class, it signals to gdb that the printer may implement new
> +     pretty-printer methods.
> +
>  *** Changes in GDB 13

This part is OK.

> +To allow extensibility, @value{GDBN} provides the
> +@code{gdb.ValuePrinter} base class.  This class does not provide any
> +attributes or behavior, but instead serves as a tag that can be
> +recognized by @value{GDBN}.  For such printers, @value{GDBN} reserves
> +all attributes of starting with a lower-case letter.  That is, in the

I think that "of" should be removed.

The python.texi part is OK otherwise.

Reviewed-By: Eli Zaretskii <eliz@gnu.org>

  reply	other threads:[~2023-09-11 19:04 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-11 17:28 [PATCH 0/2] Add pretty-printer base class and new methods Tom Tromey
2023-09-11 17:28 ` [PATCH 1/2] Introduce gdb.ValuePrinter Tom Tromey
2023-09-11 19:04   ` Eli Zaretskii [this message]
2023-09-26 14:08     ` Tom Tromey
2023-09-11 17:28 ` [PATCH 2/2] Add two new pretty-printer methods Tom Tromey
2023-09-11 19:00   ` Eli Zaretskii
2023-09-26 14:09 ` [PATCH 0/2] Add pretty-printer base class and new methods Tom Tromey

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=83y1hcpm4b.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@adacore.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).