diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2012-06-06 19:34:31 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2012-06-06 19:34:31 +0000 |
commit | de13fcf2f449be5ecddb22b8e0893431a83ada6d (patch) | |
tree | f401c6e4f2a41d223527565a05b3f7b7c12faed2 | |
parent | c3a01a2280502569bc526ac897d87aad0afd3a97 (diff) | |
download | gdb-de13fcf2f449be5ecddb22b8e0893431a83ada6d.zip gdb-de13fcf2f449be5ecddb22b8e0893431a83ada6d.tar.gz gdb-de13fcf2f449be5ecddb22b8e0893431a83ada6d.tar.bz2 |
* mips-tdep.c (mips_pseudo_register_type): Use
mips_float_register_p.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | 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 <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 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; |