From: Daniel Jacobowitz Date: Thu, 26 Jul 2001 02:23:58 +0000 (+0000) Subject: * infptrace.c (child_xfer_memory): Add cast to CORE_ADDR. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f30d7f5405c3238886aeaf349d1769351ef8c8c;p=binutils-gdb.git * 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. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 93f395bc6c9..921fbdd00d0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,21 @@ +2001-07-25 Daniel Jacobowitz + + * 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. + 2001-07-25 Eli Zaretskii * README: Mention how to make gdb.pdf. diff --git a/gdb/gdbserver/low-hppabsd.c b/gdb/gdbserver/low-hppabsd.c index b5f02ae4ede..86f21eadb38 100644 --- a/gdb/gdbserver/low-hppabsd.c +++ b/gdb/gdbserver/low-hppabsd.c @@ -279,7 +279,7 @@ read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) { register int i; /* Round starting address down to longword boundary. */ - register CORE_ADDR addr = memaddr & -sizeof (int); + register CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (int); /* Round ending address up; get number of longwords that makes. */ register int count = (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int); @@ -306,7 +306,7 @@ write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) { register int i; /* Round starting address down to longword boundary. */ - register CORE_ADDR addr = memaddr & -sizeof (int); + register CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (int); /* Round ending address up; get number of longwords that makes. */ register int count = (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int); diff --git a/gdb/gdbserver/low-linux.c b/gdb/gdbserver/low-linux.c index eea8c1df6b1..0c7fce55833 100644 --- a/gdb/gdbserver/low-linux.c +++ b/gdb/gdbserver/low-linux.c @@ -675,7 +675,7 @@ read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) { 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) @@ -704,7 +704,7 @@ write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) { 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) / sizeof (PTRACE_XFER_TYPE); diff --git a/gdb/gdbserver/low-lynx.c b/gdb/gdbserver/low-lynx.c index 563779d1535..e742207d65d 100644 --- a/gdb/gdbserver/low-lynx.c +++ b/gdb/gdbserver/low-lynx.c @@ -657,7 +657,7 @@ read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) { register int i; /* Round starting address down to longword boundary. */ - register CORE_ADDR addr = memaddr & -sizeof (int); + register CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (int); /* Round ending address up; get number of longwords that makes. */ register int count = (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int); @@ -684,7 +684,7 @@ write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) { register int i; /* Round starting address down to longword boundary. */ - register CORE_ADDR addr = memaddr & -sizeof (int); + register CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (int); /* Round ending address up; get number of longwords that makes. */ register int count = (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int); diff --git a/gdb/gdbserver/low-nbsd.c b/gdb/gdbserver/low-nbsd.c index 3b3009f295d..b6897e784de 100644 --- a/gdb/gdbserver/low-nbsd.c +++ b/gdb/gdbserver/low-nbsd.c @@ -522,7 +522,7 @@ read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) { register int i; /* Round starting address down to longword boundary. */ - register CORE_ADDR addr = memaddr & -sizeof (int); + register CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (int); /* Round ending address up; get number of longwords that makes. */ register int count = (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int); @@ -549,7 +549,7 @@ write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) { register int i; /* Round starting address down to longword boundary. */ - register CORE_ADDR addr = memaddr & -sizeof (int); + register CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (int); /* Round ending address up; get number of longwords that makes. */ register int count = (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int); diff --git a/gdb/gdbserver/low-sparc.c b/gdb/gdbserver/low-sparc.c index d2eb1139bb1..7efaaeb0647 100644 --- a/gdb/gdbserver/low-sparc.c +++ b/gdb/gdbserver/low-sparc.c @@ -238,7 +238,7 @@ read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) { register int i; /* Round starting address down to longword boundary. */ - register CORE_ADDR addr = memaddr & -sizeof (int); + register CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (int); /* Round ending address up; get number of longwords that makes. */ register int count = (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int); @@ -265,7 +265,7 @@ write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) { register int i; /* Round starting address down to longword boundary. */ - register CORE_ADDR addr = memaddr & -sizeof (int); + register CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (int); /* Round ending address up; get number of longwords that makes. */ register int count = (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int); diff --git a/gdb/gdbserver/low-sun3.c b/gdb/gdbserver/low-sun3.c index c1b424a896f..4269d579524 100644 --- a/gdb/gdbserver/low-sun3.c +++ b/gdb/gdbserver/low-sun3.c @@ -215,7 +215,7 @@ read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) { register int i; /* Round starting address down to longword boundary. */ - register CORE_ADDR addr = memaddr & -sizeof (int); + register CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (int); /* Round ending address up; get number of longwords that makes. */ register int count = (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int); @@ -242,7 +242,7 @@ write_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len) { register int i; /* Round starting address down to longword boundary. */ - register CORE_ADDR addr = memaddr & -sizeof (int); + register CORE_ADDR addr = memaddr & -(CORE_ADDR) sizeof (int); /* Round ending address up; get number of longwords that makes. */ register int count = (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int); 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) 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) diff --git a/gdb/symm-nat.c b/gdb/symm-nat.c index 844e91589be..183fa9198dd 100644 --- a/gdb/symm-nat.c +++ b/gdb/symm-nat.c @@ -758,7 +758,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)