mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
* a68v-xdep.c (store_inferior_registers): declare as void.
* infptrace.c: HP/Apollos have ptrace.h in the wrong place. * remote-st2000.c: Massive changes to use new serial package. Also added 'connect' command to transparantly connect to serial port. * ser-termios.c: Big cleanup, use nicer coding conventions. * ser-bsd.c: New module, serial stuff for BSD systems. * serial.h: Define struct ttystate properly using HAVE_TERMIO. * xm-apollo68b.h: #define PTRACE_IN_WRONG_PLACE...
This commit is contained in:
@ -31,8 +31,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
#include <signal.h>
|
||||
#include <sys/ioctl.h>
|
||||
#ifndef USG
|
||||
#ifdef PTRACE_IN_WRONG_PLACE
|
||||
#include <ptrace.h>
|
||||
#else
|
||||
#include <sys/ptrace.h>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#if !defined (PT_KILL)
|
||||
#define PT_KILL 8
|
||||
@ -395,8 +399,7 @@ child_xfer_memory (memaddr, myaddr, len, write, target)
|
||||
|
||||
/* Copy data to be written over corresponding part of buffer */
|
||||
|
||||
(void) memcpy ((char *) buffer + (memaddr & (sizeof (int) - 1)), myaddr,
|
||||
len);
|
||||
memcpy ((char *) buffer + (memaddr & (sizeof (int) - 1)), myaddr, len);
|
||||
|
||||
/* Write the entire buffer. */
|
||||
|
||||
@ -431,8 +434,7 @@ child_xfer_memory (memaddr, myaddr, len, write, target)
|
||||
}
|
||||
|
||||
/* Copy appropriate bytes out of the buffer. */
|
||||
(void) memcpy (myaddr, (char *) buffer + (memaddr & (sizeof (int) - 1)),
|
||||
len);
|
||||
memcpy (myaddr, (char *) buffer + (memaddr & (sizeof (int) - 1)), len);
|
||||
}
|
||||
return len;
|
||||
}
|
||||
|
Reference in New Issue
Block a user