This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 4/9] Restrict ia64_convert_register_p
- From: Yao Qi <qiyaoltc at gmail dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 10 May 2017 14:10:08 +0100
- Subject: [PATCH 4/9] Restrict ia64_convert_register_p
- Authentication-results: sourceware.org; auth=none
- References: <1494421813-7268-1-git-send-email-yao.qi@linaro.org>
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