X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=bfd%2Flynx-core.c;h=57cd89748e1a16d94225f943482ebdc0348c6614;hb=ef96a356b87730e05257297ad853ae4225c90c61;hp=5f91b450c5299fd3d959d7f65bd086e40ef4b7d2;hpb=117ed4f8d5a9691c0bc1200d5d797e5211688c84;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/lynx-core.c b/bfd/lynx-core.c index 5f91b450c5..57cd89748e 100644 --- a/bfd/lynx-core.c +++ b/bfd/lynx-core.c @@ -1,26 +1,26 @@ /* BFD back end for Lynx core files - Copyright 1993, 1994, 1995, 2001, 2002, 2004, 2006 - Free Software Foundation, Inc. + Copyright (C) 1993-2020 Free Software Foundation, Inc. Written by Stu Grossman of Cygnus Support. -This file is part of BFD, the Binary File Descriptor library. + This file is part of BFD, the Binary File Descriptor library. -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 3 of the License, or + (at your option) any later version. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, + MA 02110-1301, USA. */ -#include "bfd.h" #include "sysdep.h" +#include "bfd.h" #include "libbfd.h" #ifdef LYNX_CORE @@ -52,17 +52,17 @@ struct lynx_core_struct #define core_command(bfd) (core_hdr(bfd)->cmd) #define lynx_core_file_matches_executable_p generic_core_file_matches_executable_p +#define lynx_core_file_pid _bfd_nocore_core_file_pid /* Handle Lynx core dump file. */ static asection * -make_bfd_asection (abfd, name, flags, size, vma, filepos) - bfd *abfd; - const char *name; - flagword flags; - bfd_size_type size; - bfd_vma vma; - file_ptr filepos; +make_bfd_asection (bfd *abfd, + const char *name, + flagword flags, + bfd_size_type size, + bfd_vma vma, + file_ptr filepos) { asection *asect; char *newname; @@ -86,8 +86,7 @@ make_bfd_asection (abfd, name, flags, size, vma, filepos) } const bfd_target * -lynx_core_file_p (abfd) - bfd *abfd; +lynx_core_file_p (bfd *abfd) { int secnum; struct pssentry pss; @@ -163,11 +162,11 @@ lynx_core_file_p (abfd) pagesize + tcontext_size + pss.ssize #if defined (SPARC) || defined (__SPARC__) /* SPARC Lynx seems to start dumping - the .data section at a page - boundary. It's OK to check a - #define like SPARC here because this - file can only be compiled on a Lynx - host. */ + the .data section at a page + boundary. It's OK to check a + #define like SPARC here because this + file can only be compiled on a Lynx + host. */ + pss.data_start % pagesize #endif ); @@ -213,15 +212,13 @@ lynx_core_file_p (abfd) } char * -lynx_core_file_failing_command (abfd) - bfd *abfd; +lynx_core_file_failing_command (bfd *abfd) { return core_command (abfd); } int -lynx_core_file_failing_signal (abfd) - bfd *abfd; +lynx_core_file_failing_signal (bfd *abfd) { return core_signal (abfd); }