From 88954b49e47574cdd048a23ca391a85fb6f77f47 Mon Sep 17 00:00:00 2001 From: Yao Qi Date: Wed, 24 May 2017 22:15:23 +0100 Subject: [PATCH] Restrict ia64_convert_register_p gdb: 2017-05-24 Yao Qi * ia64-tdep.c (ia64_convert_register_p): Check type's code is TYPE_CODE_FLT. --- gdb/ChangeLog | 5 +++++ gdb/ia64-tdep.c | 1 + 2 files changed, 6 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index b0d3c2e14ac..0cb8e36d7b9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2017-05-24 Yao Qi + + * ia64-tdep.c (ia64_convert_register_p): Check type's code is + TYPE_CODE_FLT. + 2017-05-24 Yao Qi * m68k-tdep.c (m68k_convert_register_p): Check type's code is diff --git a/gdb/ia64-tdep.c b/gdb/ia64-tdep.c index 8583450fee8..7282acb20ac 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)); } -- 2.30.2