diff options
author | Alan Modra <amodra@gmail.com> | 2025-01-04 09:40:21 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2025-01-04 11:31:35 +1030 |
commit | d8d3ed295efb75a7421340484e3fe8115402b1f2 (patch) | |
tree | 8e76d0b387c9cd1c830e9f82ff6f6953fce0f044 /gdb/testsuite/gdb.python/py-commands-breakpoint.py | |
parent | 879bde78c2568b251526a9c874cce60091b0d0e5 (diff) | |
download | binutils-d8d3ed295efb75a7421340484e3fe8115402b1f2.zip binutils-d8d3ed295efb75a7421340484e3fe8115402b1f2.tar.gz binutils-d8d3ed295efb75a7421340484e3fe8115402b1f2.tar.bz2 |
bfd_set_input_error
My recent change to closing archives showed some problems with the way
we stash errors for archive elements. The most obvious thing found
by oss-fuzz, is that if output archive elements are closed during
bfd_close of an archive, then we can't access the element filename
when printing the element. So change bfd_set_input_error to stash the
entire error message instead of input bfd and input error.
* bfd.c (input_bfd, input_error): Delete.
(bfd_error, _bfd_error_buf): Move.
(_bfd_clear_error_data): Move. Make static. Clear bfd_error too.
(bfd_set_input_error): Print the error use bfd_asprintf here..
(bfd_errmsg): ..not here.
(bfd_init): Update.
* opncls.c (bfd_close_all_done): Don't call _bfd_clear_error_data.
* libbfd.h: Regenerate.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-commands-breakpoint.py')
0 files changed, 0 insertions, 0 deletions