Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* [PATCH 0/4] Add more styling of error messages
@ 2026-04-05 11:28 Tom Tromey
  2026-04-05 11:28 ` [PATCH 1/4] Add command styling to " Tom Tromey
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Tom Tromey @ 2026-04-05 11:28 UTC (permalink / raw)
  To: gdb-patches; +Cc: Tom Tromey

This series adds more styling of error messages.  I searched through
error messages for common patterns to find the places to edit.  So, I
have probably missed a few.

I fixed up some quoting in the "command style" patch, but in other
spots I left it alone.

I didn't write new tests.  I don't know how anyone else feels about
this but I tend to think that testing the styling of error messages is
overkill.

There are still more styles that could be applied, for instance line
numbers.  Also I discovered that the previous fix to allow error() to
be styled did not apply to throw_error et al.  So, some more work
there is needed.

Regression tested on x86-64 Fedora 40.

Signed-off-by: Tom Tromey <tom@tromey.com>
---
Tom Tromey (4):
      Add command styling to error messages
      Add filename styling to error messages
      Add variable styling to error messages
      Add function styling to error messages

 gdb/ada-exp.y                       |  8 +++--
 gdb/ada-tasks.c                     | 10 ++++---
 gdb/amd64-linux-tdep.c              |  5 ++--
 gdb/breakpoint.c                    | 50 +++++++++++++++++++++-----------
 gdb/c-exp.y                         | 10 +++++--
 gdb/cli/cli-cmds.c                  | 35 ++++++++++++++--------
 gdb/cli/cli-dump.c                  | 21 +++++++++-----
 gdb/cli/cli-script.c                | 33 ++++++++++++++-------
 gdb/cli/cli-utils.c                 | 18 ++++++++----
 gdb/coffread.c                      | 19 ++++++++----
 gdb/compile/compile-object-load.c   | 36 +++++++++++++----------
 gdb/compile/compile.c               |  6 ++--
 gdb/corelow.c                       | 10 ++++---
 gdb/ctfread.c                       | 16 ++++++----
 gdb/d-exp.y                         |  4 ++-
 gdb/dwarf2/ada-imported.c           |  6 ++--
 gdb/dwarf2/dwz.c                    |  9 +++---
 gdb/eval.c                          |  9 ++++--
 gdb/exec.c                          | 14 +++++----
 gdb/findvar.c                       |  4 ++-
 gdb/gcore.c                         |  9 ++++--
 gdb/gdb_bfd.c                       | 12 +++++---
 gdb/guile/guile.c                   |  4 ++-
 gdb/inf-child.c                     |  3 +-
 gdb/infcall.c                       | 58 ++++++++++++++++++++++---------------
 gdb/infcmd.c                        |  6 ++--
 gdb/linespec.c                      |  1 +
 gdb/linux-nat.c                     |  4 ++-
 gdb/maint.c                         |  3 +-
 gdb/parse.c                         |  4 ++-
 gdb/printcmd.c                      | 11 +++----
 gdb/python/python.c                 |  3 +-
 gdb/record-btrace.c                 |  4 ++-
 gdb/record-full.c                   | 25 +++++++++-------
 gdb/record.c                        |  6 ++--
 gdb/remote-fileio.c                 | 11 +++++--
 gdb/remote.c                        | 20 +++++++++----
 gdb/rust-lang.c                     |  6 ++--
 gdb/skip.c                          |  5 ++--
 gdb/solib-aix.c                     | 16 ++++++----
 gdb/solib-darwin.c                  |  7 +++--
 gdb/solib.c                         | 14 +++++----
 gdb/symfile-mem.c                   | 16 +++++++---
 gdb/symfile.c                       | 30 +++++++++++--------
 gdb/symmisc.c                       |  3 +-
 gdb/symtab.c                        |  3 +-
 gdb/target.c                        | 41 +++++++++++++++++---------
 gdb/testsuite/gdb.base/commands.exp |  3 +-
 gdb/testsuite/gdb.base/default.exp  |  2 +-
 gdb/tracectf.c                      | 16 ++++++----
 gdb/tracefile-tfile.c               |  6 ++--
 gdb/utils.c                         |  4 ++-
 gdb/valops.c                        | 29 +++++++++++--------
 gdb/xcoffread.c                     |  6 ++--
 gdb/xml-support.c                   |  5 +++-
 55 files changed, 465 insertions(+), 254 deletions(-)
---
base-commit: 2ec5e53d96e3def7ee11966fd07ae215be84515a
change-id: 20260405-more-error-style-0c3bb6e1b9ad

Best regards,
-- 
Tom Tromey <tom@tromey.com>


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

end of thread, other threads:[~2026-04-09  1:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-04-05 11:28 [PATCH 0/4] Add more styling of error messages Tom Tromey
2026-04-05 11:28 ` [PATCH 1/4] Add command styling to " Tom Tromey
2026-04-05 11:28 ` [PATCH 2/4] Add filename " Tom Tromey
2026-04-05 11:28 ` [PATCH 3/4] Add variable " Tom Tromey
2026-04-05 11:28 ` [PATCH 4/4] Add function " Tom Tromey
2026-04-05 12:55 ` [PATCH 0/4] Add more styling of " Andrew Burgess
2026-04-09  1:10   ` Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox