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]

[committed] MIPS: Another place for mips_float_register_p


Hi,

 With the recent addition of mips_float_register_p somehow I missed one 
place, here's an obvious update I have now committed.

2012-06-06  Maciej W. Rozycki  <macro@codesourcery.com>

	gdb/
	* mips-tdep.c (mips_pseudo_register_type): Use 
	mips_float_register_p.

  Maciej

gdb-mips-fpr-p-update.diff
Index: gdb-fsf-trunk-quilt/gdb/mips-tdep.c
===================================================================
--- gdb-fsf-trunk-quilt.orig/gdb/mips-tdep.c	2012-06-02 02:28:52.105595283 +0100
+++ gdb-fsf-trunk-quilt/gdb/mips-tdep.c	2012-06-02 02:30:06.685561207 +0100
@@ -1045,8 +1045,7 @@ mips_pseudo_register_type (struct gdbarc
   if (TYPE_LENGTH (rawtype) == 0)
     return rawtype;
 
-  if (rawnum >= mips_regnum (gdbarch)->fp0
-      && rawnum < mips_regnum (gdbarch)->fp0 + 32)
+  if (mips_float_register_p (gdbarch, rawnum))
     /* Present the floating point registers however the hardware did;
        do not try to convert between FPU layouts.  */
     return rawtype;


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