diff options
author | Tom Tromey <tom@tromey.com> | 2024-02-12 18:38:36 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2024-04-09 09:39:15 -0600 |
commit | e8cd90f039c33726af3441ccf56eea7b69ed0de1 (patch) | |
tree | 3d6c51482f19d41966cb64dad6052559feeb7756 /bfd | |
parent | 6f3cf71845e68409724aef1cfef3b5a44beecf53 (diff) | |
download | gdb-e8cd90f039c33726af3441ccf56eea7b69ed0de1.zip gdb-e8cd90f039c33726af3441ccf56eea7b69ed0de1.tar.gz gdb-e8cd90f039c33726af3441ccf56eea7b69ed0de1.tar.bz2 |
Rewrite gdb_bfd_error_handler
This patch rewrites gdb_bfd_error_handler to use 'bfd_print_error' to
generate the text of the warning, and then emits it using 'warning'.
The current code in the tree is a bit wrong because it may do the
wrong thing when BFD uses ones of its printf extensions.
This also adds locking to increment_bfd_error_count. This is
important now that some BFD operations can be done on worker threads.
This approach makes it simpler for worker threads to intercept any
messages.
Regression tested on x86-64 Fedora 38.
Diffstat (limited to 'bfd')
0 files changed, 0 insertions, 0 deletions