[PATCH 0/3] Use ui-out tables in a few spots
Tom Tromey
tom@tromey.com
Wed Aug 9 16:40:57 GMT 2023
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.
---
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/user-regs.c | 14 ++++++-
3 files changed, 80 insertions(+), 102 deletions(-)
---
base-commit: 3cdc2d7e66ab6a48014dcd425c88cfd42a964321
change-id: 20230809-info-proc-ui-out-ce83b44285ec
Best regards,
--
Tom Tromey <tom@tromey.com>
More information about the Gdb-patches
mailing list