Mon Dec 21 12:40:10 1992 Ian Lance Taylor (ian@cygnus.com)
[binutils-gdb.git] / gdb / coredep.c
index 487b5fab55e7e63a9164d0e53b81c9c305c9d785..059d23e73ab19caa249c94cdc247b4f6a878fae1 100644 (file)
@@ -20,10 +20,9 @@ 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"
 
 /* These are needed on various systems to expand REGISTER_U_ADDR.  */
@@ -35,7 +34,6 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 #include <sys/ptrace.h>
 #endif
 
-
 /* Extract the register values out of the core file and store
    them where `read_register' will find them.
 
@@ -69,8 +67,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++)
     {