]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* m68k-tdep.c (m68k_convert_register_p): Compare with
authorVladimir Prus <vladimir@codesourcery.com>
Fri, 6 Nov 2009 17:22:33 +0000 (17:22 +0000)
committerVladimir Prus <vladimir@codesourcery.com>
Fri, 6 Nov 2009 17:22:33 +0000 (17:22 +0000)
the actual type of fp registers, not one of the possible
values.

gdb/ChangeLog
gdb/m68k-tdep.c

index 7ee0dd9a514db2f5b240394fb11556662ec552d8..5c199c43d042438960a8b3fa0a1094f41954d8f4 100644 (file)
@@ -1,3 +1,9 @@
+2009-11-06  Vladimir Prus  <vladimir@codesourcery.com>
+
+       * m68k-tdep.c (m68k_convert_register_p): Compare with
+       the actual type of fp registers, not one of the possible
+       values.
+
 2009-11-06  Vladimir Prus  <vladimir@codesourcery.com>
 
         Prevent program output from mix with "^running".
index 7a49c23d3bd69ddf51d62cac167825315e700301..d4a134fe0e4afc16ab9f500c11a3288e38719f43 100644 (file)
@@ -192,7 +192,8 @@ m68k_convert_register_p (struct gdbarch *gdbarch, int regnum, struct type *type)
   if (!gdbarch_tdep (gdbarch)->fpregs_present)
     return 0;
   return (regnum >= M68K_FP0_REGNUM && regnum <= M68K_FP0_REGNUM + 7
-         && type != m68881_ext_type (gdbarch));
+         && type != m68881_ext_type (gdbarch)
+         && type != register_type (gdbarch, M68K_FP0_REGNUM));
 }
 
 /* Read a value of type TYPE from register REGNUM in frame FRAME, and