diff options
author | Alan Modra <amodra@gmail.com> | 2016-09-30 11:03:52 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2016-09-30 11:38:39 +0930 |
commit | 52d45da3f275b5d1c8ef2e96a7760585c736133b (patch) | |
tree | 2ead3ed78b4f3488034512473db1b9e3a965a629 /bfd/elf64-mmix.c | |
parent | 1fcf3da985a9f4436674816046cf5a308eae74f3 (diff) | |
download | gdb-52d45da3f275b5d1c8ef2e96a7760585c736133b.zip gdb-52d45da3f275b5d1c8ef2e96a7760585c736133b.tar.gz gdb-52d45da3f275b5d1c8ef2e96a7760585c736133b.tar.bz2 |
Make bfd_error_handler_type like vprintf
It was like printf, which means you can't use bfd_set_error_handler to
hook in a function to do something and then call the original handler.
The patch also deletes some unused functions and makes pointers local.
bfd/
* bfd-in.h: Include stdarg.h.
* bfd.c (bfd_error_handler_type): Make like vprintf.
(_bfd_error_internal): Rename from _bfd_error_handler. Make static.
(error_handler_internal): New function, split out from..
(_bfd_default_error_handler): ..here. Rename to _bfd_error_handler.
(bfd_set_error_handler): Update.
(bfd_get_error_handler, bfd_get_assert_handler): Delete.
(_bfd_assert_handler): Make static.
* coffgen.c (null_error_handler): Update params.
* elf-bfd.h (struct elf_backend_data <link_order_error_handler>):
Don't use bfd_error_handler_type.
* elf64-mmix.c (mmix_dump_bpo_gregs): Likewise.
* elfxx-target.h (elf_backend_link_order_error_handler): Default
to _bfd_error_handler.
* libbfd-in.h (_bfd_default_error_handler): Don't declare.
(bfd_assert_handler_type): Likewise.
(_bfd_error_handler): Update.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
ld/
* ldlang.c (ignore_bfd_errors): Update params.
Diffstat (limited to 'bfd/elf64-mmix.c')
-rw-r--r-- | bfd/elf64-mmix.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf64-mmix.c b/bfd/elf64-mmix.c index 2038813..9c56f7c 100644 --- a/bfd/elf64-mmix.c +++ b/bfd/elf64-mmix.c @@ -172,7 +172,7 @@ extern void mmix_elf_symbol_processing (bfd *, asymbol *); /* Only intended to be called from a debugger. */ extern void mmix_dump_bpo_gregs - (struct bfd_link_info *, bfd_error_handler_type); + (struct bfd_link_info *, void (*) (const char *, ...)); static void mmix_set_relaxable_size (bfd *, asection *, void *); @@ -2485,7 +2485,7 @@ bpo_reloc_request_sort_fn (const void * p1, const void * p2) void mmix_dump_bpo_gregs (struct bfd_link_info *link_info, - bfd_error_handler_type pf) + void (*pf) (const char *fmt, ...)) { bfd *bpo_greg_owner; asection *bpo_gregs_section; |