public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/3] libctf: error handling improvements
@ 2020-07-31 19:16 Nick Alcock
  2020-07-31 19:16 ` [PATCH 1/3] libctf, binutils: initial work towards libctf gettextization Nick Alcock
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Nick Alcock @ 2020-07-31 19:16 UTC (permalink / raw)
  To: binutils

This does two interconnected things, done simultaneously because each touches
the same large set of source lines: gettextization, and transitioning of all
dprintfs used for error and warning handling to use the new ctf_errwarning_next
infrastructure added in the recent deduplicator series (which means changing a
lot of dprintfs into ctf_err_warns -- and also, because I changed the prototype
of ctf_err_warn, changing all the *existing* uses of that function, too).

All three patches contain a few little things that need review: the first, a
tiny reshuffling of readelf dependencies; the second, adaptation to a public API
change (of ctf_errwarning_next, which hasn't yet landed in a release, so can
change freely), some code motion allowing us to report CTF open errors, and a
bit of error-text adjustment; and the third, the removal of quote marks around
libctf API text in ld, objdump and readelf error messages, and adjustment of
testsuite output to match.

No new test failures, CTF-related test failures, or compilation warnings on
anything in the test matrix (all-targets built and tested on
x86_64-pc-linux-gnu, sparc64-unknown-linux-gnu, FreeBSD 12, Cygwin, mingw32,
mingw64). (All tested both with --disable-nls and without it.)

Nick Alcock (3):
  libctf, binutils: initial work towards libctf gettextization
  libctf, binutils, include, ld: gettextize and improve error handling
  binutils, ld: dequote libctf error messages

 binutils/Makefile.am                          |   2 +-
 binutils/Makefile.in                          |   2 +-
 binutils/objdump.c                            |  42 ++-
 binutils/readelf.c                            |  39 ++-
 include/ctf-api.h                             |   2 +-
 ld/ldlang.c                                   |  67 ++--
 ld/testsuite/ld-ctf/ctf.exp                   |  11 +
 ld/testsuite/ld-ctf/diag-ctf-version-f.d      |   2 +-
 ld/testsuite/ld-ctf/diag-cttname-invalid.d    |   2 +-
 .../ld-ctf/diag-decompression-failure.d       |   2 +-
 ld/testsuite/ld-ctf/diag-parname.d            |   2 +-
 ld/testsuite/ld-ctf/diag-unsupported-flag.d   |   2 +-
 .../ld-ctf/diag-wrong-magic-number-mixed.d    |   2 +-
 ld/testsuite/ld-ctf/diag-wrong-magic-number.d |   2 +-
 libctf/Makefile.am                            |   2 +-
 libctf/Makefile.in                            |   2 +-
 libctf/configure                              |  28 +-
 libctf/configure.ac                           |   2 +-
 libctf/ctf-archive.c                          |  63 ++--
 libctf/ctf-create.c                           |  90 ++++--
 libctf/ctf-dedup.c                            | 290 +++++++++---------
 libctf/ctf-dump.c                             |  27 +-
 libctf/ctf-error.c                            |   4 +-
 libctf/ctf-impl.h                             |  18 +-
 libctf/ctf-intl.h                             |  68 ++++
 libctf/ctf-labels.c                           |   6 +-
 libctf/ctf-link.c                             | 133 ++++----
 libctf/ctf-open-bfd.c                         |  31 +-
 libctf/ctf-open.c                             |  59 ++--
 libctf/ctf-string.c                           |   2 +-
 libctf/ctf-subr.c                             |  87 +++++-
 libctf/ctf-types.c                            |   3 +-
 32 files changed, 646 insertions(+), 448 deletions(-)
 create mode 100644 libctf/ctf-intl.h

-- 
2.28.0.248.gcf383e60c9


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2020-08-31 22:07 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-31 19:16 [PATCH 0/3] libctf: error handling improvements Nick Alcock
2020-07-31 19:16 ` [PATCH 1/3] libctf, binutils: initial work towards libctf gettextization Nick Alcock
2020-07-31 19:16 ` [PATCH 2/3] libctf, binutils, include, ld: gettextize and improve error handling Nick Alcock
2020-07-31 19:16 ` [PATCH 3/3] binutils, ld: dequote libctf error messages Nick Alcock
2020-08-20 15:15 ` [PATCH 0/3] libctf: error handling improvements Nick Alcock
2020-08-21 13:15   ` Nick Clifton
2020-08-25 22:57     ` Nick Alcock
2020-08-26  9:59       ` Nick Clifton
2020-08-31 22:07         ` Nick Alcock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).