public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/4] Require help text to fit in 80 columns
@ 2024-06-03 17:57 Tom Tromey
  2024-06-03 17:57 ` [PATCH 1/4] Call gdbpy_fix_doc_string_indentation for function help Tom Tromey
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Tom Tromey @ 2024-06-03 17:57 UTC (permalink / raw)
  To: gdb-patches

I noticed that "help info variables" was pretty ugly on my 80-column
terminal.  While fixing this, I was curious to know what other
problems there might be, and I ended up writing a unit test to check
for over-long lines in the help text.  This series is the result.

Regression tested on x86-64 Fedora 38.

---
Tom Tromey (4):
      Call gdbpy_fix_doc_string_indentation for function help
      Wrap help strings at 80 columns
      Wrap help options when building help string
      Ensure that help text fits in 80 columns

 gdb/cli/cli-cmds.c                    |  3 +-
 gdb/cli/cli-decode.h                  |  3 ++
 gdb/cli/cli-option.c                  | 60 +++++++++++++++++++++--------------
 gdb/cli/cli-utils.c                   |  8 ++---
 gdb/debuginfod-support.c              | 12 +++----
 gdb/infcmd.c                          |  6 ++--
 gdb/memattr.c                         |  3 +-
 gdb/psymtab.c                         |  3 +-
 gdb/python/py-function.c              |  2 ++
 gdb/record-btrace.c                   | 10 +++---
 gdb/record-full.c                     |  4 +--
 gdb/record.c                          | 26 +++++++--------
 gdb/regcache-dump.c                   |  6 ++--
 gdb/symfile.c                         |  4 +--
 gdb/symmisc.c                         |  3 +-
 gdb/unittests/command-def-selftests.c |  5 +++
 16 files changed, 93 insertions(+), 65 deletions(-)
---
base-commit: 7c493aa7e73e6718790f6b4a01a39ff4146cba4a
change-id: 20240603-doc-string-cols-0fd31bbe72e2

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


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

end of thread, other threads:[~2024-06-07 16:50 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-03 17:57 [PATCH 0/4] Require help text to fit in 80 columns Tom Tromey
2024-06-03 17:57 ` [PATCH 1/4] Call gdbpy_fix_doc_string_indentation for function help Tom Tromey
2024-06-03 17:57 ` [PATCH 2/4] Wrap help strings at 80 columns Tom Tromey
2024-06-05 15:11   ` Metzger, Markus T
2024-06-07 16:50     ` Tom Tromey
2024-06-03 17:57 ` [PATCH 3/4] Wrap help options when building help string Tom Tromey
2024-06-03 17:57 ` [PATCH 4/4] Ensure that help text fits in 80 columns 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).