From 3c1ac6e7f78fa7b77255df054218ed761b3c14e9 Mon Sep 17 00:00:00 2001 From: Vladimir Prus Date: Fri, 6 Nov 2009 17:22:33 +0000 Subject: [PATCH] * m68k-tdep.c (m68k_convert_register_p): Compare with the actual type of fp registers, not one of the possible values. --- gdb/ChangeLog | 6 ++++++ gdb/m68k-tdep.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7ee0dd9a514..5c199c43d04 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2009-11-06 Vladimir Prus + + * 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 Prevent program output from mix with "^running". diff --git a/gdb/m68k-tdep.c b/gdb/m68k-tdep.c index 7a49c23d3bd..d4a134fe0e4 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 -- 2.30.2