From: Vladimir Prus Date: Fri, 6 Nov 2009 17:22:33 +0000 (+0000) Subject: * m68k-tdep.c (m68k_convert_register_p): Compare with X-Git-Tag: cgen-snapshot-20091201~276 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3c1ac6e7f78fa7b77255df054218ed761b3c14e9;p=platform%2Fupstream%2Fbinutils.git * m68k-tdep.c (m68k_convert_register_p): Compare with the actual type of fp registers, not one of the possible values. --- 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 + * 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". 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