diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2009-11-06 17:22:33 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2009-11-06 17:22:33 +0000 |
commit | 3c1ac6e7f78fa7b77255df054218ed761b3c14e9 (patch) | |
tree | f2ba72bb1510936d60b4deb3ddd85201414ab2a2 | |
parent | df856bcc4d0c24105806ff7e16c04a53ff703e08 (diff) | |
download | binutils-3c1ac6e7f78fa7b77255df054218ed761b3c14e9.zip binutils-3c1ac6e7f78fa7b77255df054218ed761b3c14e9.tar.gz binutils-3c1ac6e7f78fa7b77255df054218ed761b3c14e9.tar.bz2 |
* m68k-tdep.c (m68k_convert_register_p): Compare with
the actual type of fp registers, not one of the possible
values.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/m68k-tdep.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7ee0dd9..5c199c4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 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". gdb/ 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 |