* mips-tdep.c (mips_pseudo_register_type): Use

mips_float_register_p.
This commit is contained in:
Maciej W. Rozycki
2012-06-06 19:34:31 +00:00
parent c3a01a2280
commit de13fcf2f4
2 changed files with 6 additions and 2 deletions

View File

@@ -1,3 +1,8 @@
2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
* mips-tdep.c (mips_pseudo_register_type): Use
mips_float_register_p.
2012-06-06 Pedro Alves <palves@redhat.com>
* infrun.c (handle_inferior_event): Remove calls to

View File

@@ -1015,8 +1015,7 @@ mips_pseudo_register_type (struct gdbarch *gdbarch, int regnum)
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;