* wince-stub.c (FREE): New macro.
[deliverable/binutils-gdb.git] / bfd / ptrace-core.c
index 9d4721cbd1f8b84c558747b950d345f711d01f1e..0969dce4c0548e6cf6698d45ebbff23616721a66 100644 (file)
@@ -1,5 +1,5 @@
 /* BFD backend for core files which use the ptrace_user structure
-   Copyright 1993, 1994 Free Software Foundation, Inc.
+   Copyright 1993, 94, 95, 96, 1998 Free Software Foundation, Inc.
    The structure of this file is based on trad-core.c written by John Gilmore
    of Cygnus Support.
    Modified to work with the ptrace_user structure by Kevin A. Buettner.
@@ -27,13 +27,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.  */
 #include "sysdep.h"
 #include "libbfd.h"
 
-#include <stdio.h>
-#include <sys/types.h>
 #include <sys/param.h>
 #include <sys/dir.h>
 #include <signal.h>
-#include <errno.h>
-#include <unistd.h>
 #include <sys/ptrace.h>
 
 
@@ -57,6 +53,7 @@ char *                ptrace_unix_core_file_failing_command PARAMS ((bfd *abfd));
 int            ptrace_unix_core_file_failing_signal PARAMS ((bfd *abfd));
 boolean                ptrace_unix_core_file_matches_executable_p
                         PARAMS ((bfd *core_bfd, bfd *exec_bfd));
+static void    swap_abort PARAMS ((void));
 
 /* ARGSUSED */
 const bfd_target *
@@ -172,7 +169,7 @@ ptrace_unix_core_file_matches_executable_p  (core_bfd, exec_bfd)
 }
 \f
 /* If somebody calls any byte-swapping routines, shoot them.  */
-void
+static void
 swap_abort()
 {
   abort(); /* This way doesn't require any declaration for ANSI to fuck up */
@@ -186,8 +183,8 @@ const bfd_target ptrace_core_vec =
   {
     "trad-core",
     bfd_target_unknown_flavour,
-    true,                      /* target byte order */
-    true,                      /* target headers byte order */
+    BFD_ENDIAN_UNKNOWN,                /* target byte order */
+    BFD_ENDIAN_UNKNOWN,                /* target headers byte order */
     (HAS_RELOC | EXEC_P |      /* object flags */
      HAS_LINENO | HAS_DEBUG |
      HAS_SYMS | HAS_LOCALS | WP_TEXT | D_PAGED),
@@ -227,6 +224,8 @@ const bfd_target ptrace_core_vec =
        BFD_JUMP_TABLE_LINK (_bfd_nolink),
        BFD_JUMP_TABLE_DYNAMIC (_bfd_nodynamic),
 
+    NULL,
+    
     (PTR) 0                    /* backend_data */
 };
 
This page took 0.026359 seconds and 4 git commands to generate.