From de13fcf2f449be5ecddb22b8e0893431a83ada6d Mon Sep 17 00:00:00 2001 From: "Maciej W. Rozycki" Date: Wed, 6 Jun 2012 19:34:31 +0000 Subject: [PATCH] * mips-tdep.c (mips_pseudo_register_type): Use mips_float_register_p. --- gdb/ChangeLog | 5 +++++ gdb/mips-tdep.c | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 17d2f4f..e247a95 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2012-06-06 Maciej W. Rozycki + + * mips-tdep.c (mips_pseudo_register_type): Use + mips_float_register_p. + 2012-06-06 Pedro Alves * infrun.c (handle_inferior_event): Remove calls to diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 909a5a6..858e74b 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -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; -- 2.7.4