This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Small fix for assigning values to vectors
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: dan at codesourcery dot com (Daniel Jacobowitz)
- Cc: ken at linux dot vnet dot ibm dot com (Ken Werner), gdb-patches at sourceware dot org
- Date: Fri, 9 Jul 2010 15:16:33 +0200 (CEST)
- Subject: Re: [patch] Small fix for assigning values to vectors
Daniel Jacobowitz wrote:
> I thought we were discussing toval, at the top of the context block;
> that's the destination. It seems to me like we do need to coerce
> fromval here. If this works, maybe somewhere else is coercing it
> anyway?
Oops, sorry, crossed emails. If we don't coerce from fromval when
assigning to an internal variable, it simply means that the internal
variable acquires array type and the full array contents, instead of
acquiring pointer type. But I don't see why this would be a problem;
in fact it may well preferable. See my other mail for more details ...
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com