[PATCH 4/9] Restrict ia64_convert_register_p

Yao Qi qiyaoltc@gmail.com
Wed May 10 13:10:00 GMT 2017


gdb:

2017-04-12  Yao Qi  <yao.qi@linaro.org>

	* ia64-tdep.c (ia64_convert_register_p): Check type's code is
	TYPE_CODE_FLT.
---
 gdb/ia64-tdep.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c
index 8583450..7282acb 100644
--- a/gdb/ia64-tdep.c
+++ b/gdb/ia64-tdep.c
@@ -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));
 }
 
-- 
1.9.1



More information about the Gdb-patches mailing list