* readelf.c (dump_section): Don't print 32-bit values, which
[deliverable/binutils-gdb.git] / gdb / ppc-linux-tdep.c
index 5e1bc003fb793766e3af6a7fc9d3ad72faa991cb..50d9c39eeefdcab914c00797acf7681c998bea3e 100644 (file)
@@ -916,14 +916,18 @@ ppc_linux_sigtramp_cache (struct frame_info *next_frame,
   trad_frame_set_reg_addr (this_cache, tdep->ppc_cr_regnum,
                           gpregs + 38 * tdep->wordsize);
 
-  /* Floating point registers.  */
-  for (i = 0; i < 32; i++)
+  if (ppc_floating_point_unit_p (gdbarch))
     {
-      int regnum = i + FP0_REGNUM;
-      trad_frame_set_reg_addr (this_cache, regnum, fpregs + i * tdep->wordsize);
+      /* Floating point registers.  */
+      for (i = 0; i < 32; i++)
+       {
+         int regnum = i + FP0_REGNUM;
+         trad_frame_set_reg_addr (this_cache, regnum,
+                                  fpregs + i * tdep->wordsize);
+       }
+      trad_frame_set_reg_addr (this_cache, tdep->ppc_fpscr_regnum,
+                         fpregs + 32 * tdep->wordsize);
     }
-  trad_frame_set_reg_addr (this_cache, tdep->ppc_fpscr_regnum,
-                          fpregs + 32 * tdep->wordsize);
   trad_frame_set_id (this_cache, frame_id_build (base, func));
 }
 
This page took 0.024156 seconds and 4 git commands to generate.