diff options
author | Joel Brobecker <brobecker@gnat.com> | 2008-03-21 20:09:04 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2008-03-21 20:09:04 +0000 |
commit | 6249473abc72fc2f1e5ff0cfe5c80a909af82d44 (patch) | |
tree | 1136747c7e88733ff5f66189be2aed075ce1ab44 | |
parent | 304d36545bb2d37ed4c63079a7480b0efc96e4fe (diff) | |
download | gdb-6249473abc72fc2f1e5ff0cfe5c80a909af82d44.tar.gz |
* aix-thread.c (pdc_read_regs): Fix compiler warning.
(pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
(store_regs_kernel_thread): Likewise.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/aix-thread.c | 14 |
2 files changed, 13 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 203e8dfacf5..0341a764b94 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change) + + * aix-thread.c (pdc_read_regs): Fix compiler warning. + (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread) + (store_regs_kernel_thread): Likewise. + 2008-03-17 Daniel Jacobowitz <dan@codesourcery.com> * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR. diff --git a/gdb/aix-thread.c b/gdb/aix-thread.c index c620ce3a428..5c4679c4d76 100644 --- a/gdb/aix-thread.c +++ b/gdb/aix-thread.c @@ -363,7 +363,7 @@ pdc_read_regs (pthdb_user_t user, /* Floating-point registers. */ if (flags & PTHDB_FLAG_FPRS) { - if (!ptrace32 (PTT_READ_FPRS, tid, (int *) fprs, 0, NULL)) + if (!ptrace32 (PTT_READ_FPRS, tid, (void *) fprs, 0, NULL)) memset (fprs, 0, sizeof (fprs)); memcpy (context->fpr, fprs, sizeof(fprs)); } @@ -434,7 +434,7 @@ pdc_write_regs (pthdb_user_t user, } else { - ptrace32 (PTT_WRITE_SPRS, tid, (int *) &context->msr, 0, NULL); + ptrace32 (PTT_WRITE_SPRS, tid, (void *) &context->msr, 0, NULL); } } return 0; @@ -984,10 +984,10 @@ aix_thread_resume (ptid_t ptid, int step, enum target_signal sig) if (arch64) ptrace64aix (PTT_CONTINUE, tid[0], 1, - target_signal_to_host (sig), (int *) tid); + target_signal_to_host (sig), (void *) tid); else ptrace32 (PTT_CONTINUE, tid[0], (int *) 1, - target_signal_to_host (sig), (int *) tid); + target_signal_to_host (sig), (void *) tid); } } @@ -1230,7 +1230,7 @@ fetch_regs_kernel_thread (struct regcache *regcache, int regno, || (regno >= tdep->ppc_fp0_regnum && regno < tdep->ppc_fp0_regnum + ppc_num_fprs))) { - if (!ptrace32 (PTT_READ_FPRS, tid, (int *) fprs, 0, NULL)) + if (!ptrace32 (PTT_READ_FPRS, tid, (void *) fprs, 0, NULL)) memset (fprs, 0, sizeof (fprs)); supply_fprs (regcache, fprs); } @@ -1547,9 +1547,9 @@ store_regs_kernel_thread (const struct regcache *regcache, int regno, && regno < tdep->ppc_fp0_regnum + ppc_num_fprs))) { /* Pre-fetch: some regs may not be in the cache. */ - ptrace32 (PTT_READ_FPRS, tid, (int *) fprs, 0, NULL); + ptrace32 (PTT_READ_FPRS, tid, (void *) fprs, 0, NULL); fill_fprs (regcache, fprs); - ptrace32 (PTT_WRITE_FPRS, tid, (int *) fprs, 0, NULL); + ptrace32 (PTT_WRITE_FPRS, tid, (void *) fprs, 0, NULL); } /* Special-purpose registers. */ |