diff options
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r-- | gdb/rs6000-nat.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c index c49e64b5a62..de37ff1d6de 100644 --- a/gdb/rs6000-nat.c +++ b/gdb/rs6000-nat.c @@ -118,8 +118,8 @@ regmap (struct gdbarch *gdbarch, int regno, int *isfloat) && regno < tdep->ppc_gp0_regnum + ppc_num_gprs) return regno; else if (tdep->ppc_fp0_regnum >= 0 - && tdep->ppc_fp0_regnum <= regno - && regno < tdep->ppc_fp0_regnum + ppc_num_fprs) + && tdep->ppc_fp0_regnum <= regno + && regno < tdep->ppc_fp0_regnum + ppc_num_fprs) { *isfloat = 1; return regno - tdep->ppc_fp0_regnum + FPR0; @@ -137,7 +137,7 @@ regmap (struct gdbarch *gdbarch, int regno, int *isfloat) else if (regno == tdep->ppc_xer_regnum) return XER; else if (tdep->ppc_fpscr_regnum >= 0 - && regno == tdep->ppc_fpscr_regnum) + && regno == tdep->ppc_fpscr_regnum) return FPSCR; else if (tdep->ppc_mq_regnum >= 0 && regno == tdep->ppc_mq_regnum) return MQ; @@ -277,7 +277,7 @@ store_register (struct regcache *regcache, int regno) else { /* The PT_WRITE_GPR operation is rather odd. For 32-bit inferiors, - the register's value is passed by value, but for 64-bit inferiors, + the register's value is passed by value, but for 64-bit inferiors, the address of a buffer containing the value is passed. */ if (!ARCH64 ()) rs6000_ptrace32 (PT_WRITE_GPR, pid, (int *) nr, *addr, 0); @@ -317,7 +317,7 @@ rs6000_nat_target::fetch_registers (struct regcache *regcache, int regno) /* Read 32 general purpose registers. */ for (regno = tdep->ppc_gp0_regnum; - regno < tdep->ppc_gp0_regnum + ppc_num_gprs; + regno < tdep->ppc_gp0_regnum + ppc_num_gprs; regno++) { fetch_register (regcache, regno); @@ -325,8 +325,8 @@ rs6000_nat_target::fetch_registers (struct regcache *regcache, int regno) /* Read general purpose floating point registers. */ if (tdep->ppc_fp0_regnum >= 0) - for (regno = 0; regno < ppc_num_fprs; regno++) - fetch_register (regcache, tdep->ppc_fp0_regnum + regno); + for (regno = 0; regno < ppc_num_fprs; regno++) + fetch_register (regcache, tdep->ppc_fp0_regnum + regno); /* Read special registers. */ fetch_register (regcache, gdbarch_pc_regnum (gdbarch)); @@ -336,7 +336,7 @@ rs6000_nat_target::fetch_registers (struct regcache *regcache, int regno) fetch_register (regcache, tdep->ppc_ctr_regnum); fetch_register (regcache, tdep->ppc_xer_regnum); if (tdep->ppc_fpscr_regnum >= 0) - fetch_register (regcache, tdep->ppc_fpscr_regnum); + fetch_register (regcache, tdep->ppc_fpscr_regnum); if (tdep->ppc_mq_regnum >= 0) fetch_register (regcache, tdep->ppc_mq_regnum); } @@ -359,7 +359,7 @@ rs6000_nat_target::store_registers (struct regcache *regcache, int regno) /* Write general purpose registers first. */ for (regno = tdep->ppc_gp0_regnum; - regno < tdep->ppc_gp0_regnum + ppc_num_gprs; + regno < tdep->ppc_gp0_regnum + ppc_num_gprs; regno++) { store_register (regcache, regno); @@ -367,8 +367,8 @@ rs6000_nat_target::store_registers (struct regcache *regcache, int regno) /* Write floating point registers. */ if (tdep->ppc_fp0_regnum >= 0) - for (regno = 0; regno < ppc_num_fprs; regno++) - store_register (regcache, tdep->ppc_fp0_regnum + regno); + for (regno = 0; regno < ppc_num_fprs; regno++) + store_register (regcache, tdep->ppc_fp0_regnum + regno); /* Write special registers. */ store_register (regcache, gdbarch_pc_regnum (gdbarch)); @@ -378,7 +378,7 @@ rs6000_nat_target::store_registers (struct regcache *regcache, int regno) store_register (regcache, tdep->ppc_ctr_regnum); store_register (regcache, tdep->ppc_xer_regnum); if (tdep->ppc_fpscr_regnum >= 0) - store_register (regcache, tdep->ppc_fpscr_regnum); + store_register (regcache, tdep->ppc_fpscr_regnum); if (tdep->ppc_mq_regnum >= 0) store_register (regcache, tdep->ppc_mq_regnum); } |