This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] deal with vector return value for ppc68


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]