From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6949 invoked by alias); 29 Nov 2006 14:24:50 -0000 Received: (qmail 6935 invoked by uid 22791); 29 Nov 2006 14:24:47 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Wed, 29 Nov 2006 14:24:39 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1GpQMV-000848-88; Wed, 29 Nov 2006 09:24:35 -0500 Date: Wed, 29 Nov 2006 14:24:00 -0000 From: Daniel Jacobowitz To: Vladimir Prus Cc: gdb-patches@sources.redhat.com, Nick Roberts Subject: Re: MI/C++/references fixup Message-ID: <20061129142435.GD29365@nevyn.them.org> Mail-Followup-To: Vladimir Prus , gdb-patches@sources.redhat.com, Nick Roberts References: <200611291215.21876.vladimir@codesourcery.com> <20061129140117.GB29365@nevyn.them.org> <200611291715.05247.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200611291715.05247.vladimir@codesourcery.com> User-Agent: Mutt/1.5.13 (2006-08-11) 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: 2006-11/txt/msg00386.txt.bz2 On Wed, Nov 29, 2006 at 05:15:04PM +0300, Vladimir Prus wrote: > > > + /* We are not interested in address of references, and given > > > + that in C++ reference is not rebindable, it cannot > > > + meaningfully change. So, get hold of the real value. */ > > > > in the address of a reference, in C++ a reference. > > > > In C++ it can't meaningfully change. In a program, though, it can; > > once when it's initialized, and again if something scribbles on the > > stack. And that might be what you're trying to debug. So, I'm > > a little wary of this; it seems to me that we ought to check for both > > changes in the address and value (sort of like we do for watchpoints). > > In practice, if the address changes, the value also changes, so the user can > notice. Second, if user really wants to get the address, he can do that > with "&whatever". I suppose that's true. Want to post an updated patch, and we'll see if anyone has a reason to keep it? We're leaving the CLI as it was, this time. -- Daniel Jacobowitz CodeSourcery