Blame SOURCES/gdb-rhbz1187581-power8-regs-not-in-8.2-05of15.patch

190f2a
From FEDORA_PATCHES Mon Sep 17 00:00:00 2001
190f2a
From: Keith Seitz <keiths@redhat.com>
190f2a
Date: Fri, 11 Jan 2019 17:02:14 -0500
190f2a
Subject: gdb-rhbz1187581-power8-regs-not-in-8.2-05of15.patch
190f2a
190f2a
;; Add decfloat registers to float reggroup
190f2a
;; Pedro Franco de Carvalho, RH BZ 1187581
190f2a
190f2a
Add decfloat registers to float reggroup
190f2a
190f2a
This patch changes default_register_reggroup_p to return true when the
190f2a
register type is decimal floating point and the reggroup is
190f2a
float_reggroup.
190f2a
190f2a
gdb/ChangeLog:
190f2a
2018-10-26  Pedro Franco de Carvalho  <pedromfc@linux.ibm.com>
190f2a
190f2a
    * reggroups.c (default_register_reggroup_p): Return true for
190f2a
    decfloat registers and float_reggroup.
190f2a
190f2a
diff --git a/gdb/reggroups.c b/gdb/reggroups.c
190f2a
--- a/gdb/reggroups.c
190f2a
+++ b/gdb/reggroups.c
190f2a
@@ -202,7 +202,9 @@ default_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
190f2a
   if (group == all_reggroup)
190f2a
     return 1;
190f2a
   vector_p = TYPE_VECTOR (register_type (gdbarch, regnum));
190f2a
-  float_p = TYPE_CODE (register_type (gdbarch, regnum)) == TYPE_CODE_FLT;
190f2a
+  float_p = (TYPE_CODE (register_type (gdbarch, regnum)) == TYPE_CODE_FLT
190f2a
+	     || (TYPE_CODE (register_type (gdbarch, regnum))
190f2a
+		 == TYPE_CODE_DECFLOAT));
190f2a
   raw_p = regnum < gdbarch_num_regs (gdbarch);
190f2a
   if (group == float_reggroup)
190f2a
     return float_p;