summaryrefslogtreecommitdiff
path: root/gdb/infptrace.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <dan@debian.org>2001-07-26 02:23:58 +0000
committerDaniel Jacobowitz <dan@debian.org>2001-07-26 02:23:58 +0000
commit79789942a6f6db2eb7f5f8e4a97687c0e40e5c77 (patch)
tree0876bc2d9739ac371441a75e22d99d01a73f3aa4 /gdb/infptrace.c
parent104a6ef120de95d8152e87d1013b3b339c7feedd (diff)
downloadgdb-79789942a6f6db2eb7f5f8e4a97687c0e40e5c77.tar.gz
* infptrace.c (child_xfer_memory): Add cast to CORE_ADDR.
* infttrace.c (child_xfer_memory): Likewise. * symm-nat.c (child_xfer_memory): Likewise. * gdbserver/low-hppabsd.c (read_inferior_memory): Likewise. (write_inferior_memory): Likewise. * gdbserver/low-linux.c (read_inferior_memory): Likewise. (write_inferior_memory): Likewise. * gdbserver/low-lynx.c (read_inferior_memory): Likewise. (write_inferior_memory): Likewise. * gdbserver/low-nbsd.c (read_inferior_memory): Likewise. (write_inferior_memory): Likewise. * gdbserver/low-sparc.c (read_inferior_memory): Likewise. (write_inferior_memory): Likewise. * gdbserver/low-sun3.c (read_inferior_memory): Likewise. (write_inferior_memory): Likewise.
Diffstat (limited to 'gdb/infptrace.c')
-rw-r--r--gdb/infptrace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infptrace.c b/gdb/infptrace.c
index eede27669bf..e0a9773adee 100644
--- a/gdb/infptrace.c
+++ b/gdb/infptrace.c
@@ -497,7 +497,7 @@ child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
{
register int i;
/* Round starting address down to longword boundary. */
- register CORE_ADDR addr = memaddr & -sizeof (PTRACE_XFER_TYPE);
+ register CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (PTRACE_XFER_TYPE);
/* Round ending address up; get number of longwords that makes. */
register int count
= (((memaddr + len) - addr) + sizeof (PTRACE_XFER_TYPE) - 1)