This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] PPC ABI compliance fix
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Elena Zannoni <ezannoni at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Fri, 22 Mar 2002 14:52:06 -0500
- Subject: Re: [RFA] PPC ABI compliance fix
- References: <15515.34258.778318.466752@localhost.redhat.com>
> Index: ppc-linux-tdep.c
> ===================================================================
> RCS file: /cvs/uberbaum/gdb/ppc-linux-tdep.c,v
> retrieving revision 1.13
> diff -u -r1.13 ppc-linux-tdep.c
> --- ppc-linux-tdep.c 2002/02/24 22:31:19 1.13
> +++ ppc-linux-tdep.c 2002/03/22 18:48:39
> @@ -414,6 +414,14 @@
> it may be used generically by ports which use either the SysV ABI or
> the EABI */
>
> +/* Structures 8 bytes or less long are returned in the r3 & r4
> + registers, according to the SYSV ABI. */
> +int
> +ppc_sysv_abi_use_struct_convention (int gcc_p, struct type *value_type)
> +{
> + return (TYPE_LENGTH (value_type) > 8);
> +}
> +
> /* round2 rounds x up to the nearest multiple of s assuming that s is a
> power of 2 */
Should this live in rs6000-tdep.c?
enjoy,
Andrew