aboutsummaryrefslogtreecommitdiff
path: root/gdb/m68k-tdep.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2009-11-06 17:22:33 +0000
committerVladimir Prus <vladimir@codesourcery.com>2009-11-06 17:22:33 +0000
commit3c1ac6e7f78fa7b77255df054218ed761b3c14e9 (patch)
treef2ba72bb1510936d60b4deb3ddd85201414ab2a2 /gdb/m68k-tdep.c
parentdf856bcc4d0c24105806ff7e16c04a53ff703e08 (diff)
downloadgdb-3c1ac6e7f78fa7b77255df054218ed761b3c14e9.zip
gdb-3c1ac6e7f78fa7b77255df054218ed761b3c14e9.tar.gz
gdb-3c1ac6e7f78fa7b77255df054218ed761b3c14e9.tar.bz2
* m68k-tdep.c (m68k_convert_register_p): Compare with
the actual type of fp registers, not one of the possible values.
Diffstat (limited to 'gdb/m68k-tdep.c')
-rw-r--r--gdb/m68k-tdep.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c
index 7a49c23..d4a134f 100644
--- a/gdb/m68k-tdep.c
+++ b/gdb/m68k-tdep.c
@@ -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