Restrict ia64_convert_register_p
authorYao Qi <yao.qi@linaro.org>
Wed, 24 May 2017 21:15:23 +0000 (22:15 +0100)
committerYao Qi <yao.qi@linaro.org>
Wed, 24 May 2017 21:15:23 +0000 (22:15 +0100)
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.

gdb/ChangeLog
gdb/ia64-tdep.c

index b0d3c2e14ac5cc3a8be3f7128811850c56fe0131..0cb8e36d7b9e40c1ed7a3466151f05dd39cc3195 100644 (file)
@@ -1,3 +1,8 @@
+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
index 8583450fee89e4f0cb6a779efde95c692e097199..7282acb20ac2c25e7f2c48fec3106300c385679f 100644 (file)
@@ -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));
 }
 
This page took 0.0289 seconds and 4 git commands to generate.