From fefe2ed9292bb1188e684ab70680b557a1c76edc Mon Sep 17 00:00:00 2001 From: John Gilmore Date: Tue, 2 Mar 1993 01:56:22 +0000 Subject: [PATCH] * coredep.c: Handle NO_PTRACE_H in coredep.c. Fix by Michael Rendell, . --- gdb/ChangeLog | 5 +++++ gdb/coredep.c | 8 +++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d164a33a412..7b06af3cdb9 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, . + 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 059d23e73ab..87c2228eea1 100644 --- a/gdb/coredep.c +++ b/gdb/coredep.c @@ -31,7 +31,13 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include -#include +#ifndef NO_PTRACE_H +# ifdef PTRACE_IN_WRONG_PLACE +# include +# else /* !PTRACE_IN_WRONG_PLACE */ +# include +# endif /* !PTRACE_IN_WRONG_PLACE */ +#endif /* NO_PTRACE_H */ #endif /* Extract the register values out of the core file and store -- 2.30.2