diff options
author | Jason Molenda <jmolenda@apple.com> | 1998-08-18 23:04:24 +0000 |
---|---|---|
committer | Jason Molenda <jmolenda@apple.com> | 1998-08-18 23:04:24 +0000 |
commit | 4ff3dfab548b25c2b413095dc021e6ab32fab22b (patch) | |
tree | f360200560ec63d05cb32245ec138f4026236523 /gdb/core-aout.c | |
parent | 1aecc7dccb3ed3995f7c2f92fd728e4cc6d5cc4c (diff) | |
download | gdb-4ff3dfab548b25c2b413095dc021e6ab32fab22b.zip gdb-4ff3dfab548b25c2b413095dc021e6ab32fab22b.tar.gz gdb-4ff3dfab548b25c2b413095dc021e6ab32fab22b.tar.bz2 |
1998-08-18 Jason Molenda (jsm@bugshack.cygnus.com)
* configure.in: Add more header files to AC_CHECK_HEADERS.
* configure: Regenerated.
* command.c: Include wait.h or sys/wait.h if present.
* inftarg.c: Ditto.
* core-aout.c: Include ptrace.h or sys/ptrace.h if present, based
on autoconf test.
* infptrace.c: Ditto.
* expprint.c: Include ctype.h for isprint prototype.
* i386aix-nat.c: Include sys/reg.h if autoconf says it is present.
* i386v-nat.c: Include ptrace.h, sys/ptrace.h, and sys/reg.h if
present, based on autoconf test.
* utils.c: Include curses.h and term.h if present.
(puts_debug): Change 'carriage_return' local variable to return_p
to avoid name clash.
* config/m68k/nm-apollo68b.h: Don't define PTRACE_IN_WRONG_PLACE,
determine it with autoconf.
* config/i386/nm-linux.h: Don't define NO_SYS_REG_H, determine it
with autoconf.
* config/i386/nm-i386sco.h: Don't define NO_PTRACE_H, determine it
with autoconf.
* config/i386/nm-i386v.h: Ditto.
* config/i386/nm-symmetry.h: Ditto.
* config/m88k/xm-cxux.h: Ditto.
* config/m88k/xm-dgux.h: Ditto.
* config/m68k/delta68.mh (NAT_FILE): nm-delta68.h no longer necessary.
* config/m68k/nm-delta68.h: Removed.
Diffstat (limited to 'gdb/core-aout.c')
-rw-r--r-- | gdb/core-aout.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gdb/core-aout.c b/gdb/core-aout.c index 022ff9b..68dc1d4 100644 --- a/gdb/core-aout.c +++ b/gdb/core-aout.c @@ -23,6 +23,15 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ more machine specific. */ #include "defs.h" + +#ifdef HAVE_PTRACE_H +# include <ptrace.h> +#else +# ifdef HAVE_SYS_PTRACE_H +# include <sys/ptrace.h> +# endif +#endif + #include <sys/types.h> #include <sys/param.h> #include "gdbcore.h" @@ -35,13 +44,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ #include <sys/file.h> #include "gdb_stat.h" #include <sys/user.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 #ifndef CORE_REGISTER_ADDR |