summaryrefslogtreecommitdiff
path: root/bfd/cache.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2005-10-26 07:38:25 +0000
committerAlan Modra <amodra@bigpond.net.au>2005-10-26 07:38:25 +0000
commit91e750be54836c58cfdc9723ad127147d8e4fb6c (patch)
treefdf745e0bb0b38e0f831461ce2b3700151329748 /bfd/cache.c
parent7a1ace6a0f5732a0c82594326c075b3d08474bfc (diff)
downloadbinutils-redhat-91e750be54836c58cfdc9723ad127147d8e4fb6c.tar.gz
* cache.c (bfd_cache_lookup_worker): Use bfd_error_handler
rather than bfd_perror. Print file name. Internationalise.
Diffstat (limited to 'bfd/cache.c')
-rw-r--r--bfd/cache.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/cache.c b/bfd/cache.c
index e9f38ab6b4..88d0c98455 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;
}