MIPS: Consistently use MIPS_FPU_TYPE for `gdbarch' member
authorMaciej W. Rozycki <macro@imgtec.com>
Tue, 1 Aug 2017 18:32:25 +0000 (19:32 +0100)
committerMaciej W. Rozycki <macro@imgtec.com>
Tue, 1 Aug 2017 18:32:25 +0000 (19:32 +0100)
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'.

gdb/ChangeLog
gdb/mips-tdep.c

index dd66a45b8958bfdebc8fa8ac41e04ee3f1bb8464..90c6f5ff867240173dfc8d4202be07b43ca121b9 100644 (file)
@@ -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.
index c1800e419f8d988bef475edea0d53e9e69c271f1..75d54d0368707bc355606654c7e528ac6671cac6 100644 (file)
@@ -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)
This page took 0.041242 seconds and 4 git commands to generate.