From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30778 invoked by alias); 7 Dec 2006 05:24:40 -0000 Received: (qmail 30770 invoked by uid 22791); 7 Dec 2006 05:24:39 -0000 X-Spam-Check-By: sourceware.org Received: from viper.snap.net.nz (HELO viper.snap.net.nz) (202.37.101.8) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 07 Dec 2006 05:24:34 +0000 Received: from kahikatea.snap.net.nz (p202-124-120-99.snap.net.nz [202.124.120.99]) by viper.snap.net.nz (Postfix) with ESMTP id 9CFD83DB120; Thu, 7 Dec 2006 18:25:34 +1300 (NZDT) Received: by kahikatea.snap.net.nz (Postfix, from userid 500) id 2B9BEBE3A7; Thu, 7 Dec 2006 17:57:10 +1300 (NZDT) From: Nick Roberts MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17783.40741.544295.457176@kahikatea.snap.net.nz> Date: Thu, 07 Dec 2006 05:24:00 -0000 To: Daniel Jacobowitz , Jim Blandy , Vladimir Prus , gdb-patches@sources.redhat.com, Vladimir Prus Subject: Re: MI: fix base members in references In-Reply-To: <17783.31160.70662.126254@kahikatea.snap.net.nz> References: <200611291555.42209.ghost@cs.msu.su> <17781.56458.807690.396014@kahikatea.snap.net.nz> <20061205211214.GA28333@nevyn.them.org> <17781.58050.562000.498586@kahikatea.snap.net.nz> <20061205214654.GA29947@nevyn.them.org> <17783.31160.70662.126254@kahikatea.snap.net.nz> X-Mailer: VM 7.19 under Emacs 22.0.91.13 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-12/txt/msg00089.txt.bz2 Nick Roberts writes: > More generally variable objects still don't seem to work (even with > Vladimir's yet to be committed patch) for references to pointers. > > Assuming that the test program below makes sense, a variable object for n1 > has a value which includes the address and reports the value has changed > (as it used to do for pure references) Sorry thats actually rubbish (I was using an old GDB), but for struct S { int i; int j; }; S *s; S *&s1 = s; -var-create - * s ^done,name="var1",numchild="1",type="S *" (gdb) -var-create - * s1 ^done,name="var2",numchild="0",type="S *&" so the pointer is dereferenced by GDB but the reference to the pointer is not. I think that they should work in the same way but I'm not sure. -- Nick http://www.inet.net.nz/~nickrob