aboutsummaryrefslogtreecommitdiff
path: root/gdb/infptrace.c
diff options
context:
space:
mode:
authorK. Richard Pixley <rich@cygnus>1992-10-02 05:50:17 +0000
committerK. Richard Pixley <rich@cygnus>1992-10-02 05:50:17 +0000
commitef6f3a8b1fb50e7db99538f955879515ad6c9657 (patch)
treeb88c14e0f3780a3eb4c6cc587fd743fc7d17e3f0 /gdb/infptrace.c
parentcec673a2a5837e10576991bb5b5db3a51d470388 (diff)
downloadgdb-ef6f3a8b1fb50e7db99538f955879515ad6c9657.zip
gdb-ef6f3a8b1fb50e7db99538f955879515ad6c9657.tar.gz
gdb-ef6f3a8b1fb50e7db99538f955879515ad6c9657.tar.bz2
Rs6000 native support.
* infptrace.c: remove #ifdef USG from around include ptrace.h. machines without this header should not be compiling this file. * nm-rs6000.h, rs6000-nat.c: new files for native support. * rs6000-tdep.c: do not include sys/ptrace.h or sys/reg.h. * rs6000-xdep.c: removed. all code now in rs6000-nat.c. * xm-rs6000.h: do not include ptrace.h. (ATTACH_DETACH, FETCH_INFERIOR_REGISTERS): moved to nm-rs6000.h. * config/rs6000.mh (XDEPFILES): removed rs6000-xdep.o. infptrace.o and inftarg.o move to NATDEPFIES. (NAT_FILE, NATDEPFILES): new macro for native support.
Diffstat (limited to 'gdb/infptrace.c')
-rw-r--r--gdb/infptrace.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gdb/infptrace.c b/gdb/infptrace.c
index 7117bf9..f97d2c3 100644
--- a/gdb/infptrace.c
+++ b/gdb/infptrace.c
@@ -22,7 +22,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include "inferior.h"
#include "target.h"
-#include "nat.h"
+#include "nm.h"
#ifdef USG
#include <sys/types.h>
@@ -32,13 +32,12 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <sys/dir.h>
#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