new for ptx
[deliverable/binutils-gdb.git] / gdb / coredep.c
index 62644c6aefe39dafb85133ae8516b363000b7472..ae309800c8fecd70e32f09c410db3f90df06a974 100644 (file)
@@ -20,11 +20,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 /* core.c is supposed to be the more machine-independent aspects of this;
    this file is more machine-specific.  */
 
-#include <stdio.h>
+#include "defs.h"
 #include <sys/types.h>
 #include <sys/param.h>
-#include "defs.h"
 #include "gdbcore.h"
+#include "value.h" /* For supply_register.  */
 
 /* These are needed on various systems to expand REGISTER_U_ADDR.  */
 #ifndef USG
@@ -32,7 +32,17 @@ 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
+
+#ifdef NEED_SYS_CORE_H
+#include <sys/core.h>
 #endif
 
 /* Extract the register values out of the core file and store
@@ -68,8 +78,6 @@ fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
      NOP.  */
   if (reg_ptr > core_reg_size)
     reg_ptr -= KERNEL_U_ADDR;
-  if (reg_ptr > core_reg_size)
-    fprintf (stderr, "Can't find registers in core file\n");
 
   for (regno = 0; regno < NUM_REGS; regno++)
     {
This page took 0.023598 seconds and 4 git commands to generate.