aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1993-03-02 01:56:22 +0000
committerJohn Gilmore <gnu@cygnus>1993-03-02 01:56:22 +0000
commitfefe2ed9292bb1188e684ab70680b557a1c76edc (patch)
tree3078b00b3a6475eee6fcbc73ac6d6726379e6954 /gdb
parentfd2aaadcc9f779cbf3154b270849bb275e9690bb (diff)
downloadgdb-fefe2ed9292bb1188e684ab70680b557a1c76edc.zip
gdb-fefe2ed9292bb1188e684ab70680b557a1c76edc.tar.gz
gdb-fefe2ed9292bb1188e684ab70680b557a1c76edc.tar.bz2
* coredep.c: Handle NO_PTRACE_H in coredep.c. Fix by Michael
Rendell, <michael@mercury.cs.mun.ca>.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/coredep.c8
2 files changed, 12 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index d164a33..7b06af3 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
diff --git a/gdb/coredep.c b/gdb/coredep.c
index 059d23e..87c2228 100644
--- a/gdb/coredep.c
+++ b/gdb/coredep.c
@@ -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