From: Alan Modra Date: Wed, 26 Oct 2005 07:38:25 +0000 (+0000) Subject: * cache.c (bfd_cache_lookup_worker): Use bfd_error_handler X-Git-Tag: gdb-csl-20060226-branchpoint~947 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d53e85d8ff6a5f6c1fd0be97b561ef5ac8efa309;p=external%2Fbinutils.git * cache.c (bfd_cache_lookup_worker): Use bfd_error_handler rather than bfd_perror. Print file name. Internationalise. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a1e35e0..01987b1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2005-10-26 Alan Modra + * cache.c (bfd_cache_lookup_worker): Use bfd_error_handler + rather than bfd_perror. Print file name. Internationalise. + +2005-10-26 Alan Modra + * cache.c (bfd_open_file): Set bfd_error_system_call on failure to open file. (bfd_cache_lookup_worker): Remove check that file pos is in diff --git a/bfd/cache.c b/bfd/cache.c index e9f38ab..88d0c98 100644 --- a/bfd/cache.c +++ b/bfd/cache.c @@ -477,6 +477,7 @@ DESCRIPTION FILE * bfd_cache_lookup_worker (bfd *abfd) { + bfd *orig_bfd = abfd; if ((abfd->flags & BFD_IN_MEMORY) != 0) abort (); @@ -501,7 +502,8 @@ bfd_cache_lookup_worker (bfd *abfd) else return (FILE *) abfd->iostream; - bfd_perror ("Cannot continue"); + (*_bfd_error_handler) (_("reopening %B: %s\n"), + orig_bfd, bfd_errmsg (bfd_get_error ())); abort (); return NULL; }