This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: -var-update and address changes
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: Vladimir Prus <ghost at cs dot msu dot su>
- Cc: Jim Ingham <jingham at apple dot com>, Daniel Jacobowitz <drow at false dot org>, gdb at sources dot redhat dot com
- Date: Wed, 3 May 2006 01:14:15 +1200
- Subject: Re: -var-update and address changes
- References: <e1iqcl$2k4$1@sea.gmane.org> <20060414131549.GC12955@nevyn.them.org> <DB0425AC-0CCB-448C-BC15-7E6644C6CB0B@apple.com> <200605021649.22475.ghost@cs.msu.su>
Vladimir Prus writes:
> On Friday 14 April 2006 23:49, Jim Ingham wrote:
>
> > Note as an aside, that we had to add another varobj type which is
> > evaluated in the selected frame, whatever that happens to be. That
> > was useful for a general "variable inspector" window. People wanted
> > to put some expression there, and have it re-evaluated in the topmost
> > frame whenever they stopped. So we added that functionality. But
> > that is clearly distinct from what the "*" varobj type is supposed to
> > mean.
>
> Hi Jim,
> is this "variable inspector" the same thing that's called "watches" in other
> IDEs? Well, I really wish that gdb did support variable objects that are
> reevaluated in the current frame. As it stands now, I have to re-create
> variable objects on each step.
Assuming some ambiguity with current/selected, have you tried (not documented):
"-var-create - @ NAME"
which behaves a bit differently to "-var-create - * NAME".
--
Nick http://www.inet.net.nz/~nickrob