diff options
author | Alan Modra <amodra@gmail.com> | 2017-11-05 16:22:55 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2017-11-05 18:53:10 +1030 |
commit | 7167fe4c70ea74f1bb74a6130bb7e6bf5ca354ee (patch) | |
tree | d18b949e287e1c81530541f17e9a98ef0131d54c /bfd/ChangeLog | |
parent | 0724bd460babc0c3c31aa67b5f8385a4cb5279f9 (diff) | |
download | gdb-7167fe4c70ea74f1bb74a6130bb7e6bf5ca354ee.zip gdb-7167fe4c70ea74f1bb74a6130bb7e6bf5ca354ee.tar.gz gdb-7167fe4c70ea74f1bb74a6130bb7e6bf5ca354ee.tar.bz2 |
PR22397, BFD internal error when message locale isn't C
This adds positional parameter support to the bfd error handler,
something that was lost 2017-04-13 when _doprnt was added with commit
c08bb8dd. The number of format args is now limited to 9, which is
sufficient for current _bfd_error_handler messages. If someone
exceeds 9 args they get the joy of modifying this code to support more
args (shouldn't be too difficult).
PR 22397
* bfd.c (union _bfd_doprnt_args): New.
(PRINT_TYPE): Add FIELD arg. Take value from args.
(_bfd_doprnt): Replace ap parameter with args. Adjust all
PRINT_TYPE invocations and reading of format args to suit.
Move "%%" handling out of switch handling args. Support
positional parameters.
(_bfd_doprnt_scan): New function.
(error_handler_internal): Call _bfd_doprnt_scan and read args.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9a98d2a..80d14ae 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,15 @@ +2017-11-05 Alan Modra <amodra@gmail.com> + + PR 22397 + * bfd.c (union _bfd_doprnt_args): New. + (PRINT_TYPE): Add FIELD arg. Take value from args. + (_bfd_doprnt): Replace ap parameter with args. Adjust all + PRINT_TYPE invocations and reading of format args to suit. + Move "%%" handling out of switch handling args. Support + positional parameters. + (_bfd_doprnt_scan): New function. + (error_handler_internal): Call _bfd_doprnt_scan and read args. + 2017-11-04 Alan Modra <amodra@gmail.com> * elf32-ppc.c (got_entries_needed, got_relocs_needed): New functions. |