/* 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.
Core files
DESCRIPTION
- Buff output this facinating topic
+ These are functions pertaining to core files.
*/
#include "bfd.h"
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));
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
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));
(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;
}