[4/9] Restrict ia64_convert_register_p

Message ID 1494421813-7268-5-git-send-email-yao.qi@linaro.org
State New, archived
Headers

Commit Message

Yao Qi May 10, 2017, 1:10 p.m. UTC
  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(+)
  

Patch

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));
 }