diff options
author | Alan Modra <amodra@gmail.com> | 2005-10-26 07:38:25 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2005-10-26 07:38:25 +0000 |
commit | d53e85d8ff6a5f6c1fd0be97b561ef5ac8efa309 (patch) | |
tree | 99e5e0930669f25c2b4963b361db9ff12f50d4ad /bfd/cache.c | |
parent | 5c91cdfb252222206a3a1139de7b6200b421e043 (diff) | |
download | gdb-d53e85d8ff6a5f6c1fd0be97b561ef5ac8efa309.zip gdb-d53e85d8ff6a5f6c1fd0be97b561ef5ac8efa309.tar.gz gdb-d53e85d8ff6a5f6c1fd0be97b561ef5ac8efa309.tar.bz2 |
* 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.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |