public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/2] Suppress printing of superfluous BFD error messages
@ 2022-09-03  0:47 Kevin Buettner
  2022-09-03  0:47 ` [PATCH 1/2] " Kevin Buettner
  2022-09-03  0:47 ` [PATCH 2/2] BFD error message suppression test case Kevin Buettner
  0 siblings, 2 replies; 6+ messages in thread
From: Kevin Buettner @ 2022-09-03  0:47 UTC (permalink / raw)
  To: gdb-patches

Tools which use the BFD library will output error messages of the
form "BFD: some messsage" when a problem with the file upon which it
operating is found.  E.g. an actual message (modulo some shortening
of the pathname) from the test case in this series is:

BFD: bfd-errors-lib.so: invalid string offset 1154 >= 154 for section `.dynstr'

For some problems with executable files or libraries, BFD will
attempt to output many identical messages.  The first patch in this
series adds code to GDB to suppress messages which are identical to
earlier messages that have already been printed.

(The above blurb was adapted from a comment in the test case.)

Kevin Buettner (2):
  Suppress printing of superfluous BFD error messages
  BFD error message suppression test case

 gdb/gdb_bfd.c                            |  71 ++++++++
 gdb/testsuite/gdb.base/bfd-errors-lib.c  |  44 +++++
 gdb/testsuite/gdb.base/bfd-errors-main.c |  31 ++++
 gdb/testsuite/gdb.base/bfd-errors.exp    | 211 +++++++++++++++++++++++
 4 files changed, 357 insertions(+)
 create mode 100644 gdb/testsuite/gdb.base/bfd-errors-lib.c
 create mode 100644 gdb/testsuite/gdb.base/bfd-errors-main.c
 create mode 100644 gdb/testsuite/gdb.base/bfd-errors.exp

-- 
2.37.2


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

end of thread, other threads:[~2022-09-06 23:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-03  0:47 [PATCH 0/2] Suppress printing of superfluous BFD error messages Kevin Buettner
2022-09-03  0:47 ` [PATCH 1/2] " Kevin Buettner
2022-09-06 10:09   ` Lancelot SIX
2022-09-03  0:47 ` [PATCH 2/2] BFD error message suppression test case Kevin Buettner
2022-09-06 10:29   ` Lancelot SIX
2022-09-06 23:21     ` Kevin Buettner

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).