Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Marco Barisione <mbarisione@undo.io>
Cc: gdb-patches@sourceware.org, kevinb@redhat.com
Subject: Re: [PATCH v2] Add gdb.Value.format_string ()
Date: Mon, 18 Mar 2019 17:49:00 -0000	[thread overview]
Message-ID: <83tvg0ul85.fsf@gnu.org> (raw)
In-Reply-To: <D0495ED7-5BE4-427F-81DB-11CEADD33C07@undo.io> (message from	Marco Barisione on Mon, 18 Mar 2019 09:22:36 +0000)

> From: Marco Barisione <mbarisione@undo.io>
> Date: Mon, 18 Mar 2019 09:22:36 +0000
> Cc: Kevin Buettner <kevinb@redhat.com>
> 
> gdb/doc/ChangeLog:
> 
> 2019-03-18  Marco Barisione  <mbarisione@undo.io>
> 
> 	* python.texi: Document gdb.Value.format_string ().

Please state the node name where you made the changes, as if it were a
function (i.e. in parentheses).

> diff --git a/gdb/NEWS b/gdb/NEWS
> index c45b313406..e4d9ae0fea 100644
> --- a/gdb/NEWS
> +++ b/gdb/NEWS
> @@ -231,6 +231,12 @@ before Windows XP.
>    ** The gdb.Value type has a new constructor, which is used to construct a
>       gdb.Value from a Python buffer object and a gdb.Type.
>  
> +  ** The gdb.Value type has a new method 'format_string' which returns a
> +     string representing the value.  The formatting is controlled by the
> +     optional keyword arguments: 'raw', 'pretty_arrays', 'pretty_structs',
> +     'array_indexes', 'symbols', 'unions', 'deref_refs', 'actual_objects',
> +     'static_members', 'max_elements', 'repeat_threshold', and 'format'.
> +

This part is OK.

> +@code{True} if C++ references should be resolved to the value they refer
                  ^^^
I believe we prefer to use C@t{++}, as it looks better in print.

> +to, @code{False} (the default) if they shouldn't.  Note that, unlike for
> +the @code{print} command, references are not automatically expanded when
> +using the @code{format_string ()} method or the @code{str ()} function.

Please don't use "foo ()" to indicate that 'foo' is a function: the
result looks like a call to 'foo' with no arguments, which is not what
you mean Just @code{format_string} is enough, and likewise for 'str'.

> +representation of a C++ object, @code{False} if they shouldn't (see
                       ^^^
C@t{++}

OK with those nits fixed.

Thanks.


      parent reply	other threads:[~2019-03-18 17:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-16 11:18 [PATCH] " Marco Barisione
2019-03-17 20:50 ` Kevin Buettner
2019-03-17 23:41   ` Marco Barisione
2019-03-18  9:22   ` [PATCH v2] " Marco Barisione
2019-03-18 16:34     ` Kevin Buettner
2019-03-18 17:49       ` Eli Zaretskii
2019-03-18 18:17       ` [PATCH v3] " Marco Barisione
2019-03-27 20:16         ` Tom Tromey
2019-03-28 13:55           ` [PATCH v4] " Marco Barisione
2019-03-29 15:03             ` Tom Tromey
2019-04-12 20:18             ` New failures on gdb.python/py-format-string.exp - unix/-m32 (was: Re: [PATCH v4] Add gdb.Value.format_string ()) Sergio Durigan Junior
     [not found]       ` <D8FDF6CA-2755-4AC2-BE63-A76311F566E6@undo.io>
2019-03-18 20:00         ` [PATCH v3] Add gdb.Value.format_string () Eli Zaretskii
2019-03-18 21:49           ` [PATCH v4] " Marco Barisione
2019-03-19  6:48             ` Eli Zaretskii
2019-03-26 12:07             ` [PING][PATCH " Marco Barisione
2019-03-18 17:49     ` 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=83tvg0ul85.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=kevinb@redhat.com \
    --cc=mbarisione@undo.io \
    /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