/* BFD back end for Lynx core files
- Copyright 1993 Free Software Foundation, Inc.
+ Copyright 1993, 1994, 1995, 2001 Free Software Foundation, Inc.
Written by Stu Grossman of Cygnus Support.
This file is part of BFD, the Binary File Descriptor library.
#include <sys/conf.h>
#include <sys/kernel.h>
-/* sys/kernel.h should define this, but doesn't always, sigh. */
+/* sys/kernel.h should define this, but doesn't always, sigh. */
#ifndef __LYNXOS
#define __LYNXOS
#endif
/* These are stored in the bfd's tdata */
-struct lynx_core_struct
+struct lynx_core_struct
{
int sig;
char cmd[PNMLEN + 1];
return asect;
}
-/* ARGSUSED */
const bfd_target *
lynx_core_file_p (abfd)
bfd *abfd;
bfd_set_error (bfd_error_wrong_format);
return NULL;
}
-
+
core_signal (abfd) = threadp->currsig;
newsect = make_bfd_asection (abfd, ".stack",
return core_command (abfd);
}
-/* ARGSUSED */
int
lynx_core_file_failing_signal (abfd)
bfd *abfd;
return core_signal (abfd);
}
-/* ARGSUSED */
boolean
lynx_core_file_matches_executable_p (core_bfd, exec_bfd)
bfd *core_bfd, *exec_bfd;