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

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