This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: -var-update and address changes
- From: Vladimir Prus <ghost at cs dot msu dot su>
- To: Daniel Jacobowitz <drow at false dot org>
- Cc: Jim Ingham <jingham at apple dot com>, Nick Roberts <nickrob at snap dot net dot nz>, gdb at sources dot redhat dot com
- Date: Fri, 5 May 2006 10:25:32 +0400
- Subject: Re: -var-update and address changes
- References: <e1iqcl$2k4$1@sea.gmane.org> <200605031002.21910.ghost@cs.msu.su> <20060504145046.GA32605@nevyn.them.org>
On Thursday 04 May 2006 18:50, Daniel Jacobowitz wrote:
> On Wed, May 03, 2006 at 10:02:21AM +0400, Vladimir Prus wrote:
> > On Tuesday 02 May 2006 21:22, Jim Ingham wrote:
> > > Shouldn't the call to var->root->lang->value_of_root down at the
> > > bottom of value_of_root take care of fetching the new value?
> >
> > Well, it fetches the new value, I believe.
>
> For the wrong frame.
>
> I've only lightly tested this; could you give it a try? If it works, I
> think we should really get the "@" syntax added to the manual and
> testsuite.
>
> The removed reinit_frame_cache is undoubtedly a performance suck. I
> see no reason it should be necessary. This code is still dubious;
> the select_frame call clobbers the selected frame and nothing ever
> restores it.
I believe that it's saved/restored in varobj_update.
- Volodya