diff options
author | Stu Grossman <grossman@cygnus> | 1992-09-08 22:46:08 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1992-09-08 22:46:08 +0000 |
commit | a0f9783ea791ea36875071c35e6d2c4d5f38d34c (patch) | |
tree | c126a5c9f812dd8f0c6de150f7541626106269b5 /gdb/infptrace.c | |
parent | 1e4f3c200a15af6fe34dea69fa7c32389e1937ca (diff) | |
download | gdb-a0f9783ea791ea36875071c35e6d2c4d5f38d34c.zip gdb-a0f9783ea791ea36875071c35e6d2c4d5f38d34c.tar.gz gdb-a0f9783ea791ea36875071c35e6d2c4d5f38d34c.tar.bz2 |
* 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...
Diffstat (limited to 'gdb/infptrace.c')
-rw-r--r-- | gdb/infptrace.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gdb/infptrace.c b/gdb/infptrace.c index e9fa66d..3856b36 100644 --- a/gdb/infptrace.c +++ b/gdb/infptrace.c @@ -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; } |