diff options
author | Daniel Jacobowitz <drow@false.org> | 2001-07-26 02:23:58 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2001-07-26 02:23:58 +0000 |
commit | 9f30d7f5405c3238886aeaf349d1769351ef8c8c (patch) | |
tree | c30babf2a007bbc5544c3edc6b0bf0274bd861fd /gdb/infttrace.c | |
parent | ad3dd7ab7505cfa0fed57997c9c3613734a685eb (diff) | |
download | binutils-gdb-9f30d7f5405c3238886aeaf349d1769351ef8c8c.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/infttrace.c')
-rw-r--r-- | gdb/infttrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/infttrace.c b/gdb/infttrace.c index 3c7cf95d806..55164594b3e 100644 --- a/gdb/infttrace.c +++ b/gdb/infttrace.c @@ -4925,7 +4925,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 (TTRACE_XFER_TYPE); + register CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (TTRACE_XFER_TYPE); /* Round ending address up; get number of longwords that makes. */ register int count = (((memaddr + len) - addr) + sizeof (TTRACE_XFER_TYPE) - 1) |