| Index: gdb/aix-thread.c
|
| diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c
|
| index 0a9fae32c42d369413467175d9fbb488807daa86..c7d73eb45a272dcbfa1d66575ffc3f7926118d84 100644
|
| --- a/gdb/aix-thread.c
|
| +++ b/gdb/aix-thread.c
|
| @@ -970,7 +970,7 @@ aix_thread_detach (struct target_ops *ops, char *args, int from_tty)
|
|
|
| static void
|
| aix_thread_resume (struct target_ops *ops,
|
| - ptid_t ptid, int step, enum target_signal sig)
|
| + ptid_t ptid, int step, enum gdb_signal sig)
|
| {
|
| struct thread_info *thread;
|
| pthdb_tid_t tid[2];
|
| @@ -999,10 +999,10 @@ aix_thread_resume (struct target_ops *ops,
|
|
|
| if (arch64)
|
| ptrace64aix (PTT_CONTINUE, tid[0], 1,
|
| - target_signal_to_host (sig), (void *) tid);
|
| + gdb_signal_to_host (sig), (void *) tid);
|
| else
|
| ptrace32 (PTT_CONTINUE, tid[0], (int *) 1,
|
| - target_signal_to_host (sig), (void *) tid);
|
| + gdb_signal_to_host (sig), (void *) tid);
|
| }
|
| }
|
|
|
| @@ -1028,7 +1028,7 @@ aix_thread_wait (struct target_ops *ops,
|
|
|
| /* Check whether libpthdebug might be ready to be initialized. */
|
| if (!pd_active && status->kind == TARGET_WAITKIND_STOPPED
|
| - && status->value.sig == TARGET_SIGNAL_TRAP)
|
| + && status->value.sig == GDB_SIGNAL_TRAP)
|
| {
|
| struct regcache *regcache = get_thread_regcache (ptid);
|
| struct gdbarch *gdbarch = get_regcache_arch (regcache);
|
| @@ -1075,9 +1075,11 @@ supply_fprs (struct regcache *regcache, double *vals)
|
| floating-point registers. */
|
| gdb_assert (ppc_floating_point_unit_p (gdbarch));
|
|
|
| - for (regno = 0; regno < ppc_num_fprs; regno++)
|
| - regcache_raw_supply (regcache, regno + tdep->ppc_fp0_regnum,
|
| - (char *) (vals + regno));
|
| + for (regno = tdep->ppc_fp0_regnum;
|
| + regno < tdep->ppc_fp0_regnum + ppc_num_fprs;
|
| + regno++)
|
| + regcache_raw_supply (regcache, regno,
|
| + (char *) (vals + regno - tdep->ppc_fp0_regnum));
|
| }
|
|
|
| /* Predicate to test whether given register number is a "special" register. */
|
| @@ -1356,7 +1358,8 @@ fill_fprs (const struct regcache *regcache, double *vals)
|
| regno < tdep->ppc_fp0_regnum + ppc_num_fprs;
|
| regno++)
|
| if (REG_VALID == regcache_register_status (regcache, regno))
|
| - regcache_raw_collect (regcache, regno, vals + regno);
|
| + regcache_raw_collect (regcache, regno,
|
| + vals + regno - tdep->ppc_fp0_regnum);
|
| }
|
|
|
| /* Store the special registers into the specified 64-bit and 32-bit
|
| @@ -1829,6 +1832,8 @@ init_aix_thread_ops (void)
|
| /* Module startup initialization function, automagically called by
|
| init.c. */
|
|
|
| +void _initialize_aix_thread (void);
|
| +
|
| void
|
| _initialize_aix_thread (void)
|
| {
|
|
|