Mon Jul 3 13:55:18 1995 Steve Chamberlain <sac@slash.cygnus.com>
[deliverable/binutils-gdb.git] / bfd / core.c
index c428775fbf3fa11a3c330f6bb049f7fc8e1236c8..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"
@@ -36,20 +36,20 @@ FUNCTION
        bfd_core_file_failing_command
 
 SYNOPSIS
-       CONST char *bfd_core_file_failing_command(bfd *);
+       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}.
 
 */
 
 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));
@@ -60,11 +60,11 @@ FUNCTION
        bfd_core_file_failing_signal
 
 SYNOPSIS
-       int bfd_core_file_failing_signal(bfd *);
+       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.
+       generated the file the BFD @var{abfd} is attached to.
 */
 
 int
@@ -72,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));
@@ -88,16 +88,16 @@ SYNOPSIS
                (bfd *core_bfd, bfd *exec_bfd);
 
 DESCRIPTION
-       Returns <<true>> if the core file attached to @var{core_bfd}
+       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}, or else <<false>>.
+       @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.025642 seconds and 4 git commands to generate.