This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch 10/12] entryval: @entry values even for references


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]