This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Restrict ia64_convert_register_p
- From: Yao Qi <qiyao at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 24 May 2017 21:18:26 -0000
- Subject: [binutils-gdb] Restrict ia64_convert_register_p
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=88954b49e47574cdd048a23ca391a85fb6f77f47
commit 88954b49e47574cdd048a23ca391a85fb6f77f47
Author: Yao Qi <yao.qi@linaro.org>
Date: Wed May 24 22:15:23 2017 +0100
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.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/ia64-tdep.c | 1 +
2 files changed, 6 insertions(+)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index b0d3c2e..0cb8e36 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,10 @@
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
TYPE_CODE_FLT or not.
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));
}