aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-nat.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2007-04-27 13:17:27 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2007-04-27 13:17:27 +0000
commit0d16ee5db961a883762d09945491941b36121363 (patch)
treeb5fdc8b247a1302a80707316db3e6224e096d942 /gdb/rs6000-nat.c
parent1e8877aad4b8ebf16a5592ed37c7278fe8a64244 (diff)
downloadgdb-0d16ee5db961a883762d09945491941b36121363.zip
gdb-0d16ee5db961a883762d09945491941b36121363.tar.gz
gdb-0d16ee5db961a883762d09945491941b36121363.tar.bz2
* aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
Remove obsolete part of comment. (store_regs_user_thread): Use uint32_t temporaries when calling fill_sprs32. (store_regs_kernel_thread): Likewise. Add assertion to verify correct size of struct ptsprs members. (aix_thread_xfer_memory): Fix type of myaddr. (aix_thread_extra_thread_info): Fix compiler warning. * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *". (fetch_register, store_register): Adapt callers.
Diffstat (limited to 'gdb/rs6000-nat.c')
-rw-r--r--gdb/rs6000-nat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index 97a53aa..46907ae 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -204,7 +204,7 @@ rs6000_ptrace32 (int req, int id, int *addr, int data, int *buf)
/* Call ptracex(REQ, ID, ADDR, DATA, BUF). */
static int
-rs6000_ptrace64 (int req, int id, long long addr, int data, int *buf)
+rs6000_ptrace64 (int req, int id, long long addr, int data, void *buf)
{
#ifdef ARCH3264
int ret = ptracex (req, id, addr, data, buf);
@@ -255,7 +255,7 @@ fetch_register (int regno)
/* PT_READ_GPR requires the buffer parameter to point to long long,
even if the register is really only 32 bits. */
long long buf;
- rs6000_ptrace64 (PT_READ_GPR, PIDGET (inferior_ptid), nr, 0, (int *)&buf);
+ rs6000_ptrace64 (PT_READ_GPR, PIDGET (inferior_ptid), nr, 0, &buf);
if (register_size (current_gdbarch, regno) == 8)
memcpy (addr, &buf, 8);
else
@@ -329,7 +329,7 @@ store_register (int regno)
memcpy (&buf, addr, 8);
else
buf = *addr;
- rs6000_ptrace64 (PT_WRITE_GPR, PIDGET (inferior_ptid), nr, 0, (int *)&buf);
+ rs6000_ptrace64 (PT_WRITE_GPR, PIDGET (inferior_ptid), nr, 0, &buf);
}
}