This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] -var-update
- From: Nick Roberts <nickrob at snap dot net dot nz>
- To: Vladimir Prus <ghost at cs dot msu dot su>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sat, 20 May 2006 16:23:04 +1200
- Subject: Re: [PATCH] -var-update
> > Anyway here's a patch that actually seems to work. I've taken code from
> > c_val_print. Maybe there should be more checks and I've not tested
> > varobj_set_value (-var-assign) yet, but I thought I'd sound out the
> > genaral approcah first.
> I think that in any case, you should add a function and call it, instead of
> adding three identical code fragments.
It's just for discussion, not a finalised patch for approval.
> BTW, why coerce_ref is not suitable
> here?
coerce_ref ensures that the address is placed in the value's contents, not
the actual value which is being referred to.
--
Nick http://www.inet.net.nz/~nickrob