From: Maciej W. Rozycki Date: Wed, 6 Jun 2012 19:34:31 +0000 (+0000) Subject: * mips-tdep.c (mips_pseudo_register_type): Use X-Git-Tag: sid-snapshot-20120701~262 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de13fcf2f449be5ecddb22b8e0893431a83ada6d;p=platform%2Fupstream%2Fbinutils.git * mips-tdep.c (mips_pseudo_register_type): Use mips_float_register_p. --- 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;