aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386v-nat.c
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>1998-08-18 23:04:24 +0000
committerJason Molenda <jmolenda@apple.com>1998-08-18 23:04:24 +0000
commit4ff3dfab548b25c2b413095dc021e6ab32fab22b (patch)
treef360200560ec63d05cb32245ec138f4026236523 /gdb/i386v-nat.c
parent1aecc7dccb3ed3995f7c2f92fd728e4cc6d5cc4c (diff)
downloadgdb-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/i386v-nat.c')
-rw-r--r--gdb/i386v-nat.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/gdb/i386v-nat.c b/gdb/i386v-nat.c
index a7eea53..250b475 100644
--- a/gdb/i386v-nat.c
+++ b/gdb/i386v-nat.c
@@ -18,6 +18,15 @@ along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "defs.h"
+
+#ifdef HAVE_PTRACE_H
+# include <ptrace.h>
+#else
+# ifdef HAVE_SYS_PTRACE_H
+# include <sys/ptrace.h>
+# endif
+#endif
+
#include "frame.h"
#include "inferior.h"
#include "language.h"
@@ -41,7 +50,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include <sys/file.h>
#include "gdb_stat.h"
-#ifndef NO_SYS_REG_H
+#ifdef HAVE_SYS_REG_H
#include <sys/reg.h>
#endif