From: Jan Kratochvil <jan.kratochvil@redhat.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: gdb-patches@sourceware.org
Subject: Re: [patch 10/12] entryval: @entry values even for references
Date: Fri, 29 Jul 2011 15:55:00 -0000 [thread overview]
Message-ID: <20110729153506.GF14528@host1.jankratochvil.net> (raw)
In-Reply-To: <CAN9gPaHfgH-6bOqRX1qe2z-xxdKY4ojU=pVwkcdw3w4AO-kEOg@mail.gmail.com>
On Mon, 18 Jul 2011 23:04:06 +0200, Daniel Jacobowitz wrote:
> On Mon, Jul 18, 2011 at 4:22 PM, Jan Kratochvil <jan.kratochvil@redhat.com> wrote:
> > for parameters passed by reference the parameter itself does not change; only
> > the referenced (pointed to) value changes. Â This would not be caught at all.
>
> This is a little off topic from the current patch, but if the
> reference value is not known, and the reference entry value is known,
> should we use the entry value automatically? Since it's supposed to
> be read-only. This could potentially hide a corrupted reference
> pointer, that's the only downside.
IIUC added there:
+ /* Check if DW_AT_GNU_call_site_data_value cannot be used. If it should be
+ used and it is not available do not fall back to OUTER_VAL - dereferencing
+ TYPE_CODE_REF with non-entry data value would give current value - not the
+ entry value. */
That is if DW_AT_GNU_call_site_data_value could be used and it is not there do
cancel any call site computation at all.
+gdb_test "p nodataparam@entry" "Cannot resolve DW_AT_GNU_call_site_data_value" "entry_reference: p nodataparam@entry"
This works for TYPE_CODE_REF. But still for some:
(gdb) print glib_hash_pointer@entry
a pretty printer gets into effect which will print the current data values
referenced by the (unchanged) @entry pointer; this issue is not solved.
It will be in a new patchset resubmit.
Thanks,
Jan
next prev parent reply other threads:[~2011-07-29 15:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-18 20:26 Jan Kratochvil
2011-07-19 1:19 ` Daniel Jacobowitz
2011-07-29 15:55 ` Jan Kratochvil [this message]
2011-07-19 16:20 ` Tom Tromey
2011-07-29 15:31 ` 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=20110729153506.GF14528@host1.jankratochvil.net \
--to=jan.kratochvil@redhat.com \
--cc=drow@false.org \
--cc=gdb-patches@sourceware.org \
/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