From: Tom Tromey <tromey@redhat.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: Jan Kratochvil <jan.kratochvil@redhat.com>, gdb-patches@sourceware.org
Subject: Re: [RFC 11/12] entryval: "@entry" in input expressions
Date: Tue, 19 Jul 2011 16:38:00 -0000 [thread overview]
Message-ID: <m3pql644yv.fsf@fleche.redhat.com> (raw)
In-Reply-To: <E1Qj7xH-0005Fx-71@fencepost.gnu.org> (Eli Zaretskii's message of "Tue, 19 Jul 2011 06:55:11 -0400")
>>>>> "Eli" == Eli Zaretskii <eliz@gnu.org> writes:
>> it would be good if one can also:
>> (gdb) print refparam@entry
>> $1 = 5
Eli> Again, why not just
Eli> (gdb) print refparam
Eli> ?
Ordinarily one wants the current value of the variable, not the
variable's entry value.
>> +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
Eli> Which doesn't add any information beyond what is already shown in the
Eli> first line. What's the point?
You can use 'i@entry' in a breakpoint condition.
Tom
next prev parent reply other threads:[~2011-07-19 16:21 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
2011-07-19 16:38 ` Tom Tromey [this message]
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=m3pql644yv.fsf@fleche.redhat.com \
--to=tromey@redhat.com \
--cc=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