Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jan Kratochvil <jan.kratochvil@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC 11/12] entryval: "@entry" in input expressions
Date: Tue, 19 Jul 2011 11:14:00 -0000	[thread overview]
Message-ID: <E1Qj7xH-0005Fx-71@fencepost.gnu.org> (raw)
In-Reply-To: <20110718202410.GL30496@host1.jankratochvil.net> (message from	Jan Kratochvil on Mon, 18 Jul 2011 22:24:10 +0200)

> Date: Mon, 18 Jul 2011 22:24:10 +0200
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> 
> it would be good if one can also:
> (gdb) print refparam@entry
> $1 = 5
> 
> I am not sure if the entry values should be really indicated by the @entry
> suffix.  Also as @entry values are not not_lval it may be enough to display
> them either by `bt full' and `info args' or even by some new command:
> (gdb) entryval param
> #1 = 5

Again, why not just

 (gdb) print refparam

?

> +If you append @code{@@entry} string to a function parameter name you get its
                 ^^^^^^^^^^^^^^
This should be @kbd{@@entry}, since it's something the user should
type at the keyboard.

>                  Entry values are available only since @value{NGCC}
> +version 4.7.

Suggest not to talk about GCC explicitly, but about something more
vague, like "only with some compilers".  You yourself said in this
thread that Ubuntu back-ported the patch to GCC 4.6.x, so saying
"since 4.7" would be misleading.

> +Breakpoint 1, d (i=30) at gdb.base/entry-value.c:29
> +29	  i++;
> +(gdb) next
> +30	  e (i);
> +(gdb) print i
> +$1 = 31
> +(gdb) print i@@entry
> +$2 = 30

Which doesn't add any information beyond what is already shown in the
first line.  What's the point?

Thanks.


  reply	other threads:[~2011-07-19 10:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18 20:56 Jan Kratochvil
2011-07-19 11:14 ` Eli Zaretskii [this message]
2011-07-19 16:38   ` Tom Tromey
2011-07-29 16:17   ` Jan Kratochvil
2011-07-19 16:26 ` Tom Tromey
2011-07-25 19:00   ` Jan Kratochvil

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=E1Qj7xH-0005Fx-71@fencepost.gnu.org \
    --to=eliz@gnu.org \
    --cc=gdb-patches@sourceware.org \
    --cc=jan.kratochvil@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