This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch 10/12] entryval: @entry values even for references
- From: Daniel Jacobowitz <drow at false dot org>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 18 Jul 2011 17:04:06 -0400
- Subject: Re: [patch 10/12] entryval: @entry values even for references
- References: <20110718202224.GK30496@host1.jankratochvil.net>
On Mon, Jul 18, 2011 at 4:22 PM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> Hi,
>
> 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.
--
Thanks,
Daniel