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: [RFA] mips, recognizing floating point args


Hi Michael,

> fp_register_arg_p should recognize a typedef.

> 2006-05-31  Michael Snyder  <msnyder@redhat.com>
> 
> 	* mips-tdep.c (fp_register_arg_p): Recognize floating point typedefs.

For what is worth, this patch looks good to me.

> 
> Index: mips-tdep.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/mips-tdep.c,v
> retrieving revision 1.393
> diff -p -r1.393 mips-tdep.c
> *** mips-tdep.c	31 May 2006 23:15:50 -0000	1.393
> --- mips-tdep.c	31 May 2006 23:36:48 -0000
> *************** fp_register_arg_p (enum type_code typeco
> *** 2335,2341 ****
>   	       && (typecode == TYPE_CODE_STRUCT
>   		   || typecode == TYPE_CODE_UNION)
>   	       && TYPE_NFIELDS (arg_type) == 1
> ! 	       && TYPE_CODE (TYPE_FIELD_TYPE (arg_type, 0)) == TYPE_CODE_FLT))
>   	  && MIPS_FPU_TYPE != MIPS_FPU_NONE);
>   }
>   
> --- 2335,2341 ----
>   	       && (typecode == TYPE_CODE_STRUCT
>   		   || typecode == TYPE_CODE_UNION)
>   	       && TYPE_NFIELDS (arg_type) == 1
> ! 	       && TYPE_CODE (check_typedef (TYPE_FIELD_TYPE (arg_type, 0))) == TYPE_CODE_FLT))
>   	  && MIPS_FPU_TYPE != MIPS_FPU_NONE);
>   }
>   


-- 
Joel


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