This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] MIPS: Consistently use MIPS_FPU_TYPE for `gdbarch' member
- From: Maciej W.Rozycki <macro at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 1 Aug 2017 18:33:28 -0000
- Subject: [binutils-gdb] MIPS: Consistently use MIPS_FPU_TYPE for `gdbarch' member
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a2f1f308535745e1e8b1896945cfe4ce0aae59e7
commit a2f1f308535745e1e8b1896945cfe4ce0aae59e7
Author: Maciej W. Rozycki <macro@imgtec.com>
Date: Tue Aug 1 19:32:25 2017 +0100
MIPS: Consistently use MIPS_FPU_TYPE for `gdbarch' member
Complement commit 74ed0bb4148e ("Replace current_gdbarch in *mips*"),
<https://sourceware.org/ml/gdb-patches/2008-06/msg00490.html>, and
consistently use the MIPS_FPU_TYPE macro to access the `->mips_fpu_type'
target-dependent `gdbarch' member. No functional change.
gdb/
* mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
`->mips_fpu_type'.
Diff:
---
gdb/ChangeLog | 5 +++++
gdb/mips-tdep.c | 4 ++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index dd66a45..90c6f5f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2017-08-01 Maciej W. Rozycki <macro@imgtec.com>
+
+ * mips-tdep.c (mips_gdbarch_init): Use MIPS_FPU_TYPE to access
+ `->mips_fpu_type'.
+
2017-07-31 Xavier Roirand <roirand@adacore.com>
* solib-darwin.c (DYLD_VERSION_MAX): Increase value.
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index c1800e4..75d54d0 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -8451,7 +8451,7 @@ mips_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
break;
}
else if (arches != NULL)
- fpu_type = gdbarch_tdep (arches->gdbarch)->mips_fpu_type;
+ fpu_type = MIPS_FPU_TYPE (arches->gdbarch);
else
fpu_type = MIPS_FPU_DOUBLE;
if (gdbarch_debug)
@@ -8491,7 +8491,7 @@ mips_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
!= mips64_transfers_32bit_regs_p)
continue;
/* Be pedantic about which FPU is selected. */
- if (gdbarch_tdep (arches->gdbarch)->mips_fpu_type != fpu_type)
+ if (MIPS_FPU_TYPE (arches->gdbarch) != fpu_type)
continue;
if (tdesc_data != NULL)