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