X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=bfd%2Firix-core.c;h=6652fd4ded9ad3c043ff63add08d8e9cd685ff41;hb=8d89f51a70a9a3cf74562324fc0391e4872a93b1;hp=5b982e276c79137a3992d35e188e4202120310e7;hpb=3db64b009284dda3a1ce10a91beb1297475e60a7;p=deliverable%2Fbinutils-gdb.git diff --git a/bfd/irix-core.c b/bfd/irix-core.c index 5b982e276c..6652fd4ded 100644 --- a/bfd/irix-core.c +++ b/bfd/irix-core.c @@ -1,6 +1,5 @@ /* BFD back-end for Irix core files. - Copyright 1993, 1994, 1996, 1999, 2001, 2002, 2004, 2006, 2007 - Free Software Foundation, Inc. + Copyright (C) 1993-2015 Free Software Foundation, Inc. Written by Stu Grossman, Cygnus Support. Converted to back-end form by Ian Lance Taylor, Cygnus Support @@ -8,7 +7,7 @@ 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 + 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, @@ -18,7 +17,9 @@ 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. */ + Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, + MA 02110-1301, USA. */ + /* This file can only be compiled on systems which use Irix style core files (namely, Irix 4 and Irix 5, so far). */ @@ -42,6 +43,7 @@ struct sgi_core_struct #define core_command(bfd) (core_hdr(bfd)->cmd) #define irix_core_core_file_matches_executable_p generic_core_file_matches_executable_p +#define irix_core_core_file_pid _bfd_nocore_core_file_pid static asection *make_bfd_asection (bfd *, const char *, flagword, bfd_size_type, bfd_vma, file_ptr); @@ -59,7 +61,7 @@ do_sections64 (bfd *abfd, struct coreout *coreout) for (i = 0; i < coreout->c_nvmap; i++) { - val = bfd_bread ((PTR) &vmap, (bfd_size_type) sizeof vmap, abfd); + val = bfd_bread (&vmap, (bfd_size_type) sizeof vmap, abfd); if (val != sizeof vmap) break; @@ -107,7 +109,7 @@ do_sections (bfd *abfd, struct coreout *coreout) for (i = 0; i < coreout->c_nvmap; i++) { - val = bfd_bread ((PTR) &vmap, (bfd_size_type) sizeof vmap, abfd); + val = bfd_bread (&vmap, (bfd_size_type) sizeof vmap, abfd); if (val != sizeof vmap) break; @@ -172,7 +174,7 @@ irix_core_core_file_p (bfd *abfd) struct idesc *idg, *idf, *ids; bfd_size_type amt; - val = bfd_bread ((PTR) &coreout, (bfd_size_type) sizeof coreout, abfd); + val = bfd_bread (&coreout, (bfd_size_type) sizeof coreout, abfd); if (val != sizeof coreout) { if (bfd_get_error () != bfd_error_system_call) @@ -277,7 +279,7 @@ swap_abort(void) #define NO_PUT64 ((void (*) (bfd_uint64_t, void *)) swap_abort) #define NO_GETS64 ((bfd_int64_t (*) (const void *)) swap_abort) -const bfd_target irix_core_vec = +const bfd_target core_irix_vec = { "irix-core", bfd_target_unknown_flavour, @@ -290,6 +292,7 @@ const bfd_target irix_core_vec = 0, /* symbol prefix */ ' ', /* ar_pad_char */ 16, /* ar_max_namelen */ + 0, /* match_priority */ NO_GET64, NO_GETS64, NO_PUT64, /* 64 bit data */ NO_GET, NO_GETS, NO_PUT, /* 32 bit data */ NO_GET, NO_GETS, NO_PUT, /* 16 bit data */ @@ -324,7 +327,7 @@ const bfd_target irix_core_vec = NULL, - (PTR) 0 /* backend_data */ + NULL /* backend_data */ }; #endif /* IRIX_CORE */