* m68k-tdep.c (m68k_convert_register_p): Compare with

the actual type of fp registers, not one of the possible
	values.
This commit is contained in:
Vladimir Prus 2009-11-06 17:22:33 +00:00
parent df856bcc4d
commit 3c1ac6e7f7
2 changed files with 8 additions and 1 deletions

View 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".

View 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