Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tom@tromey.com>
To: gdb-patches@sourceware.org
Cc: Tom Tromey <tom@tromey.com>
Subject: [PATCH 0/5] Add zebra-striping to CLI tables
Date: Fri, 12 Jun 2026 08:25:20 -0600	[thread overview]
Message-ID: <20260612-submit-zebra-style-v1-0-cfd00b5c984c@tromey.com> (raw)

This series changes gdb to allow zebra-striping of tables in the CLI.
That is, with this patch, the user can set the "background" style of
even and odd lines of a table; this background style will be merged
with the relevant foreground styles of the items being printed.

Signed-off-by: Tom Tromey <tom@tromey.com>
---
Tom Tromey (5):
      Ensure tgetent is called before tgetnum
      Make two ui_out methods 'private'
      Allow "phony" ui-out tables
      Add ui_file_style::merge
      Add zebra-striping to CLI table display

 gdb/NEWS                               | 10 +++++
 gdb/cli-out.c                          | 26 ++++++++---
 gdb/cli-out.h                          | 18 +++++++-
 gdb/cli/cli-style.c                    | 43 +++++++++++++++++-
 gdb/cli/cli-style.h                    |  6 ++-
 gdb/doc/gdb.texinfo                    |  8 ++++
 gdb/mi/mi-out.c                        |  9 ++--
 gdb/mi/mi-out.h                        |  2 +-
 gdb/mingw-hdep.c                       |  6 +--
 gdb/posix-hdep.c                       |  6 +--
 gdb/python/py-uiout.h                  |  5 ++-
 gdb/stack.c                            |  6 +++
 gdb/testsuite/gdb.base/style.exp       | 17 ++++++++
 gdb/testsuite/gdb.base/zebra-style.c   | 32 ++++++++++++++
 gdb/testsuite/gdb.base/zebra-style.exp | 79 ++++++++++++++++++++++++++++++++++
 gdb/testsuite/lib/gdb-utils.exp        | 14 +++---
 gdb/ui-out.c                           | 33 ++++++++++++--
 gdb/ui-out.h                           | 29 +++++++++++--
 gdb/ui-style.c                         | 30 +++++++++++++
 gdb/ui-style.h                         | 18 ++++++++
 gdb/unittests/style-selftests.c        |  8 ++++
 gdb/utils.c                            |  6 +++
 22 files changed, 374 insertions(+), 37 deletions(-)
---
base-commit: 2b675b263dfd5c780b8b77ae6b97543a6fb42d1c
change-id: 20260612-submit-zebra-style-1bd2db26fa62

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


             reply	other threads:[~2026-06-12 14:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-12 14:25 Tom Tromey [this message]
2026-06-12 14:25 ` [PATCH 1/5] Ensure tgetent is called before tgetnum Tom Tromey
2026-06-12 14:25 ` [PATCH 2/5] Make two ui_out methods 'private' Tom Tromey
2026-06-12 14:25 ` [PATCH 3/5] Allow "phony" ui-out tables Tom Tromey
2026-06-12 14:25 ` [PATCH 4/5] Add ui_file_style::merge Tom Tromey
2026-06-12 14:25 ` [PATCH 5/5] Add zebra-striping to CLI table display Tom Tromey
2026-06-12 15:14   ` Eli Zaretskii
2026-06-13 14:28   ` Matt Rice

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260612-submit-zebra-style-v1-0-cfd00b5c984c@tromey.com \
    --to=tom@tromey.com \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox