Restrict ia64_convert_register_p

gdb:

2017-05-24  Yao Qi  <yao.qi@linaro.org>

	* ia64-tdep.c (ia64_convert_register_p): Check type's code is
	TYPE_CODE_FLT.
This commit is contained in:
Yao Qi 2017-05-24 22:15:23 +01:00
parent e3ec9b69cd
commit 88954b49e4
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2017-05-24 Yao Qi <yao.qi@linaro.org>
* ia64-tdep.c (ia64_convert_register_p): Check type's code is
TYPE_CODE_FLT.
2017-05-24 Yao Qi <yao.qi@linaro.org>
* m68k-tdep.c (m68k_convert_register_p): Check type's code is

View File

@ -1218,6 +1218,7 @@ static int
ia64_convert_register_p (struct gdbarch *gdbarch, int regno, struct type *type)
{
return (regno >= IA64_FR0_REGNUM && regno <= IA64_FR127_REGNUM
&& TYPE_CODE (type) == TYPE_CODE_FLT
&& type != ia64_ext_type (gdbarch));
}