[committed] MIPS: Another place for mips_float_register_p
Maciej W. Rozycki
macro@codesourcery.com
Wed Jun 6 19:35:00 GMT 2012
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;
More information about the Gdb-patches
mailing list