From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 884 invoked by alias); 18 Jul 2011 21:04:21 -0000 Received: (qmail 874 invoked by uid 22791); 18 Jul 2011 21:04:21 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-ew0-f41.google.com (HELO mail-ew0-f41.google.com) (209.85.215.41) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Jul 2011 21:04:07 +0000 Received: by ewy9 with SMTP id 9so1965364ewy.0 for ; Mon, 18 Jul 2011 14:04:06 -0700 (PDT) MIME-Version: 1.0 Received: by 10.14.0.69 with SMTP id 45mr2471560eea.123.1311023046393; Mon, 18 Jul 2011 14:04:06 -0700 (PDT) Received: by 10.14.127.208 with HTTP; Mon, 18 Jul 2011 14:04:06 -0700 (PDT) In-Reply-To: <20110718202224.GK30496@host1.jankratochvil.net> References: <20110718202224.GK30496@host1.jankratochvil.net> Date: Tue, 19 Jul 2011 01:19:00 -0000 Message-ID: Subject: Re: [patch 10/12] entryval: @entry values even for references From: Daniel Jacobowitz To: Jan Kratochvil Cc: gdb-patches@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-07/txt/msg00447.txt.bz2 On Mon, Jul 18, 2011 at 4:22 PM, Jan Kratochvil wrote: > Hi, > > for parameters passed by reference the parameter itself does not change; = only > the referenced (pointed to) value changes. =A0This 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. --=20 Thanks, Daniel