* coredep.c: Handle NO_PTRACE_H in coredep.c. Fix by Michael
authorJohn Gilmore <gnu@cygnus>
Tue, 2 Mar 1993 01:56:22 +0000 (01:56 +0000)
committerJohn Gilmore <gnu@cygnus>
Tue, 2 Mar 1993 01:56:22 +0000 (01:56 +0000)
Rendell, <michael@mercury.cs.mun.ca>.

gdb/ChangeLog
gdb/coredep.c

index d164a33a412e8dbb4700741ca9ce5e444b65b572..7b06af3cdb9def7b456e1416da865904b08135c0 100644 (file)
@@ -1,3 +1,8 @@
+Mon Mar  1 17:54:41 1993  John Gilmore  (gnu@cygnus.com)
+
+       * coredep.c:  Handle NO_PTRACE_H in coredep.c.  Fix by Michael
+       Rendell, <michael@mercury.cs.mun.ca>.
+
 Mon Mar  1 09:25:57 1993  Fred Fish  (fnf@cygnus.com)
 
        * language.h (local_decimal_format_custom):  Add prototype.
index 059d23e73ab19caa249c94cdc247b4f6a878fae1..87c2228eea16ec524ce69241d6a4baca3de98357 100644 (file)
@@ -31,7 +31,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <sys/file.h>
 #include <sys/stat.h>
 #include <sys/user.h>
-#include <sys/ptrace.h>
+#ifndef NO_PTRACE_H
+# ifdef PTRACE_IN_WRONG_PLACE
+#  include <ptrace.h>
+# else /* !PTRACE_IN_WRONG_PLACE */
+#  include <sys/ptrace.h>
+# endif /* !PTRACE_IN_WRONG_PLACE */
+#endif /* NO_PTRACE_H */
 #endif
 
 /* Extract the register values out of the core file and store