* 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.
This commit is contained in:
parent
ad3dd7ab75
commit
9f30d7f540
10 changed files with 33 additions and 15 deletions
|
@ -1,3 +1,21 @@
|
||||||
|
2001-07-25 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
|
* 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 <eliz@is.elta.co.il>
|
2001-07-25 Eli Zaretskii <eliz@is.elta.co.il>
|
||||||
|
|
||||||
* README: Mention how to make gdb.pdf.
|
* README: Mention how to make gdb.pdf.
|
||||||
|
|
|
@ -279,7 +279,7 @@ read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
|
||||||
{
|
{
|
||||||
register int i;
|
register int i;
|
||||||
/* Round starting address down to longword boundary. */
|
/* 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. */
|
/* Round ending address up; get number of longwords that makes. */
|
||||||
register int count
|
register int count
|
||||||
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
|
= (((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;
|
register int i;
|
||||||
/* Round starting address down to longword boundary. */
|
/* 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. */
|
/* Round ending address up; get number of longwords that makes. */
|
||||||
register int count
|
register int count
|
||||||
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
|
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
|
||||||
|
|
|
@ -675,7 +675,7 @@ read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
|
||||||
{
|
{
|
||||||
register int i;
|
register int i;
|
||||||
/* Round starting address down to longword boundary. */
|
/* 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. */
|
/* Round ending address up; get number of longwords that makes. */
|
||||||
register int count
|
register int count
|
||||||
= (((memaddr + len) - addr) + sizeof (PTRACE_XFER_TYPE) - 1)
|
= (((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;
|
register int i;
|
||||||
/* Round starting address down to longword boundary. */
|
/* 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. */
|
/* Round ending address up; get number of longwords that makes. */
|
||||||
register int count
|
register int count
|
||||||
= (((memaddr + len) - addr) + sizeof (PTRACE_XFER_TYPE) - 1) / sizeof (PTRACE_XFER_TYPE);
|
= (((memaddr + len) - addr) + sizeof (PTRACE_XFER_TYPE) - 1) / sizeof (PTRACE_XFER_TYPE);
|
||||||
|
|
|
@ -657,7 +657,7 @@ read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
|
||||||
{
|
{
|
||||||
register int i;
|
register int i;
|
||||||
/* Round starting address down to longword boundary. */
|
/* 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. */
|
/* Round ending address up; get number of longwords that makes. */
|
||||||
register int count
|
register int count
|
||||||
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
|
= (((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;
|
register int i;
|
||||||
/* Round starting address down to longword boundary. */
|
/* 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. */
|
/* Round ending address up; get number of longwords that makes. */
|
||||||
register int count
|
register int count
|
||||||
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
|
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
|
||||||
|
|
|
@ -522,7 +522,7 @@ read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
|
||||||
{
|
{
|
||||||
register int i;
|
register int i;
|
||||||
/* Round starting address down to longword boundary. */
|
/* 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. */
|
/* Round ending address up; get number of longwords that makes. */
|
||||||
register int count
|
register int count
|
||||||
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
|
= (((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;
|
register int i;
|
||||||
/* Round starting address down to longword boundary. */
|
/* 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. */
|
/* Round ending address up; get number of longwords that makes. */
|
||||||
register int count
|
register int count
|
||||||
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
|
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
|
||||||
|
|
|
@ -238,7 +238,7 @@ read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
|
||||||
{
|
{
|
||||||
register int i;
|
register int i;
|
||||||
/* Round starting address down to longword boundary. */
|
/* 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. */
|
/* Round ending address up; get number of longwords that makes. */
|
||||||
register int count
|
register int count
|
||||||
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
|
= (((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;
|
register int i;
|
||||||
/* Round starting address down to longword boundary. */
|
/* 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. */
|
/* Round ending address up; get number of longwords that makes. */
|
||||||
register int count
|
register int count
|
||||||
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
|
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
|
||||||
|
|
|
@ -215,7 +215,7 @@ read_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len)
|
||||||
{
|
{
|
||||||
register int i;
|
register int i;
|
||||||
/* Round starting address down to longword boundary. */
|
/* 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. */
|
/* Round ending address up; get number of longwords that makes. */
|
||||||
register int count
|
register int count
|
||||||
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
|
= (((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;
|
register int i;
|
||||||
/* Round starting address down to longword boundary. */
|
/* 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. */
|
/* Round ending address up; get number of longwords that makes. */
|
||||||
register int count
|
register int count
|
||||||
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
|
= (((memaddr + len) - addr) + sizeof (int) - 1) / sizeof (int);
|
||||||
|
|
|
@ -497,7 +497,7 @@ child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
|
||||||
{
|
{
|
||||||
register int i;
|
register int i;
|
||||||
/* Round starting address down to longword boundary. */
|
/* 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. */
|
/* Round ending address up; get number of longwords that makes. */
|
||||||
register int count
|
register int count
|
||||||
= (((memaddr + len) - addr) + sizeof (PTRACE_XFER_TYPE) - 1)
|
= (((memaddr + len) - addr) + sizeof (PTRACE_XFER_TYPE) - 1)
|
||||||
|
|
|
@ -4925,7 +4925,7 @@ child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
|
||||||
{
|
{
|
||||||
register int i;
|
register int i;
|
||||||
/* Round starting address down to longword boundary. */
|
/* 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. */
|
/* Round ending address up; get number of longwords that makes. */
|
||||||
register int count
|
register int count
|
||||||
= (((memaddr + len) - addr) + sizeof (TTRACE_XFER_TYPE) - 1)
|
= (((memaddr + len) - addr) + sizeof (TTRACE_XFER_TYPE) - 1)
|
||||||
|
|
|
@ -758,7 +758,7 @@ child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
|
||||||
{
|
{
|
||||||
register int i;
|
register int i;
|
||||||
/* Round starting address down to longword boundary. */
|
/* 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. */
|
/* Round ending address up; get number of longwords that makes. */
|
||||||
register int count
|
register int count
|
||||||
= (((memaddr + len) - addr) + sizeof (PTRACE_XFER_TYPE) - 1)
|
= (((memaddr + len) - addr) + sizeof (PTRACE_XFER_TYPE) - 1)
|
||||||
|
|
Loading…
Reference in a new issue