public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH v2 0/7] Require help text to fit in 80 columns
@ 2024-06-10 19:50 Tom Tromey
  2024-06-10 19:50 ` [PATCH v2 1/7] Call gdbpy_fix_doc_string_indentation for function help Tom Tromey
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Tom Tromey @ 2024-06-10 19:50 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.
I've split out a couple of patches where I reworded some text.

Regression tested on x86-64 Fedora 38.

---
Changes in v2:
- Now checks the final line of a help string as well
- Link to v1: https://inbox.sourceware.org/gdb-patches/20240603-doc-string-cols-v1-0-ad67124ba872@adacore.com

---
Tom Tromey (7):
      Call gdbpy_fix_doc_string_indentation for function help
      Wrap help strings at 80 columns
      Clean up opaque-type-resolution help
      Remove the "title" from the remote packet help
      Shorten internal problem help text
      Wrap help options when building help string
      Ensure that help text fits in 80 columns

 gdb/ada-lang.c                        | 10 +++---
 gdb/ax-gdb.c                          |  5 +--
 gdb/cli/cli-cmds.c                    |  9 +++---
 gdb/cli/cli-decode.h                  |  3 ++
 gdb/cli/cli-option.c                  | 60 +++++++++++++++++++++--------------
 gdb/cli/cli-utils.c                   |  8 ++---
 gdb/debuginfod-support.c              | 12 +++----
 gdb/dwarf2/loc.c                      | 14 ++++----
 gdb/elfread.c                         |  4 +--
 gdb/frame-unwind.c                    |  5 +--
 gdb/gdbtypes.c                        |  8 ++---
 gdb/infcmd.c                          |  6 ++--
 gdb/memattr.c                         |  3 +-
 gdb/psymtab.c                         |  3 +-
 gdb/python/py-function.c              |  2 ++
 gdb/record-btrace.c                   | 14 ++++----
 gdb/record-full.c                     |  4 +--
 gdb/record.c                          | 26 +++++++--------
 gdb/regcache-dump.c                   |  6 ++--
 gdb/remote.c                          |  6 ++--
 gdb/stap-probe.c                      |  5 +--
 gdb/symfile.c                         |  9 +++---
 gdb/symmisc.c                         |  3 +-
 gdb/symtab.c                          |  4 +--
 gdb/typeprint.c                       |  4 +--
 gdb/unittests/command-def-selftests.c | 10 +++++-
 gdb/utils.c                           | 16 +++++-----
 gdb/xtensa-tdep.c                     |  2 +-
 28 files changed, 147 insertions(+), 114 deletions(-)
---
base-commit: 58a628530ee68fe705b443947643037319e7d44e
change-id: 20240603-doc-string-cols-0fd31bbe72e2

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


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

end of thread, other threads:[~2024-06-11  6:51 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-06-10 19:50 [PATCH v2 0/7] Require help text to fit in 80 columns Tom Tromey
2024-06-10 19:50 ` [PATCH v2 1/7] Call gdbpy_fix_doc_string_indentation for function help Tom Tromey
2024-06-10 19:50 ` [PATCH v2 2/7] Wrap help strings at 80 columns Tom Tromey
2024-06-11  6:07   ` Eli Zaretskii
2024-06-11  6:51     ` Metzger, Markus T
2024-06-10 19:50 ` [PATCH v2 3/7] Clean up opaque-type-resolution help Tom Tromey
2024-06-11  5:54   ` Eli Zaretskii
2024-06-10 19:50 ` [PATCH v2 4/7] Remove the "title" from the remote packet help Tom Tromey
2024-06-11  5:58   ` Eli Zaretskii
2024-06-10 19:50 ` [PATCH v2 5/7] Shorten internal problem help text Tom Tromey
2024-06-11  5:57   ` Eli Zaretskii
2024-06-10 19:50 ` [PATCH v2 6/7] Wrap help options when building help string Tom Tromey
2024-06-10 19:50 ` [PATCH v2 7/7] 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).