*** empty log message ***
[deliverable/binutils-gdb.git] / bfd / core.c
index 993df11452596771e103cff8f9db39af1793bbbd..5d88a494c36a81893de6db445d8dc202c877241c 100644 (file)
@@ -1,5 +1,5 @@
 /* Core file generic interface routines for BFD.
-   Copyright (C) 1990-1991 Free Software Foundation, Inc.
+   Copyright (C) 1990, 91, 92, 93, 94 Free Software Foundation, Inc.
    Written by Cygnus Support.
 
 This file is part of BFD, the Binary File Descriptor library.
@@ -23,7 +23,7 @@ SECTION
        Core files
 
 DESCRIPTION
-       Buff output this facinating topic
+       These are functions pertaining to core files.
 */
 
 #include "bfd.h"
@@ -35,20 +35,21 @@ DESCRIPTION
 FUNCTION
        bfd_core_file_failing_command
 
+SYNOPSIS
+       CONST char *bfd_core_file_failing_command(bfd *abfd);
+
 DESCRIPTION
-       Returns a read-only string explaining what program was running
-       when it failed and produced the core file being read
+       Return a read-only string explaining which program was running
+       when it failed and produced the core file @var{abfd}.
 
-SYNOPSIS
-       CONST char *bfd_core_file_failing_command(bfd *);
 */
 
 CONST char *
-DEFUN(bfd_core_file_failing_command,(abfd),
-      bfd *abfd)
+bfd_core_file_failing_command (abfd)
+     bfd *abfd;
 {
   if (abfd->format != bfd_core) {
-    bfd_error = invalid_operation;
+    bfd_set_error (bfd_error_invalid_operation);
     return NULL;
   }
   return BFD_SEND (abfd, _core_file_failing_command, (abfd));
@@ -58,12 +59,12 @@ DEFUN(bfd_core_file_failing_command,(abfd),
 FUNCTION
        bfd_core_file_failing_signal
 
+SYNOPSIS
+       int bfd_core_file_failing_signal(bfd *abfd);
+
 DESCRIPTION
        Returns the signal number which caused the core dump which
-       generated the file the BFD is attached to.
-
-SYNOPSIS
-       int bfd_core_file_failing_signal(bfd *);
+       generated the file the BFD @var{abfd} is attached to.
 */
 
 int
@@ -71,7 +72,7 @@ bfd_core_file_failing_signal (abfd)
      bfd *abfd;
 {
   if (abfd->format != bfd_core) {
-    bfd_error = invalid_operation;
+    bfd_set_error (bfd_error_invalid_operation);
     return 0;
   }
   return BFD_SEND (abfd, _core_file_failing_signal, (abfd));
@@ -82,22 +83,21 @@ bfd_core_file_failing_signal (abfd)
 FUNCTION
        core_file_matches_executable_p
 
-DESCRIPTION
-       Returns <<true>> if the core file attached to @var{core_bfd}
-       was generated by a run of the executable file attached to
-       @var{exec_bfd}, or else <<false>>.
-
 SYNOPSIS
        boolean core_file_matches_executable_p
                (bfd *core_bfd, bfd *exec_bfd);
-*/
 
+DESCRIPTION
+       Return <<true>> if the core file attached to @var{core_bfd}
+       was generated by a run of the executable file attached to
+       @var{exec_bfd}, <<false>> otherwise.
+*/
 boolean
 core_file_matches_executable_p (core_bfd, exec_bfd)
      bfd *core_bfd, *exec_bfd;
 {
     if ((core_bfd->format != bfd_core) || (exec_bfd->format != bfd_object)) {
-           bfd_error = wrong_format;
+           bfd_set_error (bfd_error_wrong_format);
            return false;
        }
 
This page took 0.024795 seconds and 4 git commands to generate.