This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] deal with vector return value for ppc68
- From: Daniel Jacobowitz <drow at false dot org>
- To: Paul Gilliam <pgilliam at us dot ibm dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 2 Nov 2005 15:44:00 -0500
- Subject: Re: [PATCH] deal with vector return value for ppc68
- References: <200510241606.10304.pgilliam@us.ibm.com>
On Mon, Oct 24, 2005 at 04:06:10PM -0700, Paul Gilliam wrote:
> 2005-10-24 Paul Gilliam <pgilliam@us.ibm.com
>
> * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Copy code from
> ppc_sysv_abi_return_value() to handle a vector return value.
Kevin's approved this but before you check it in please fix the
formatting.
> + /* Array type has more than one use. */
Two spaces after periods.
> + /* A VMX vector is returned in v2. */
Ditto.
> + if (readbuf)
> + {
> + regcache_cooked_read (regcache, tdep->ppc_vr0_regnum+2, readbuf);
> + }
> + if (writebuf)
> + {
> + regcache_cooked_write(regcache, tdep->ppc_vr0_regnum+2, writebuf);
> + }
Useless braces; spaces before parentheses.
Thanks.
--
Daniel Jacobowitz
CodeSourcery, LLC