public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Use ui-out tables in a few spots
@ 2024-03-03 18:43 Tom Tromey
  2024-03-03 18:43 ` [PATCH v2 1/3] Use ui-out in maintenance_print_user_registers Tom Tromey
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Tom Tromey @ 2024-03-03 18:43 UTC (permalink / raw)
  To: gdb-patches

This series changes a few spots to use ui-out tables rather than
hand-aligned printf-based ones.  I think ui-out tables should
generally be preferred:

* They are more flexible and easier to use

* They sometimes provide automatic styling (like addresses in this
  series)

* They allow the possibility of structured reuse via MI

There are still a few such tables left in gdb after this series, but
they are all in code I can't readily test: fbsd-tdep.c,
darwin-nat-info.c, and netbsd-tdep.c.

Regression tested on x86-64 Fedora 38.

---
Changes in v2:
- Rebased
- Fixed test failure pointed out in review
- Link to v1: https://inbox.sourceware.org/gdb-patches/20230809-info-proc-ui-out-v1-0-36d4b1b8f582@tromey.com

---
Tom Tromey (3):
      Use ui-out in maintenance_print_user_registers
      Use ui-out in core_target::info_proc_mappings
      Use ui-out tables in linux-tdep.c

 gdb/corelow.c                         |  54 +++++++---------
 gdb/linux-tdep.c                      | 114 ++++++++++++++--------------------
 gdb/testsuite/gdb.base/completion.exp |   2 +-
 gdb/user-regs.c                       |  14 ++++-
 4 files changed, 81 insertions(+), 103 deletions(-)
---
base-commit: 90f8d97c8efa75f7f019b868eca9c626bc35203d
change-id: 20230809-info-proc-ui-out-ce83b44285ec

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


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

end of thread, other threads:[~2024-03-03 18:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-03 18:43 [PATCH v2 0/3] Use ui-out tables in a few spots Tom Tromey
2024-03-03 18:43 ` [PATCH v2 1/3] Use ui-out in maintenance_print_user_registers Tom Tromey
2024-03-03 18:43 ` [PATCH v2 2/3] Use ui-out in core_target::info_proc_mappings Tom Tromey
2024-03-03 18:43 ` [PATCH v2 3/3] Use ui-out tables in linux-tdep.c Tom Tromey

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