public inbox for gdb-patches@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 0/7] Minor improvements to cmd_list_element
@ 2021-05-14 19:38 Simon Marchi
  2021-05-14 19:38 ` [PATCH 1/7] gdb: move cmd_list_element::prefixname to cli/cli-decode.c Simon Marchi
                   ` (7 more replies)
  0 siblings, 8 replies; 13+ messages in thread
From: Simon Marchi @ 2021-05-14 19:38 UTC (permalink / raw)
  To: gdb-patches

While trying to fix some bug, I read a lot of the command-related code,
hoping to find ways to make it cleaner and simpler.  I didn't really
succeed, but I managed to gather these small improvements that I think
slightly help readability.

Simon Marchi (7):
  gdb: move cmd_list_element::prefixname to cli/cli-decode.c
  gdb: don't handle old == nullptr in add_alias_cmd
  gdb: rename cmd_list_element::prefixlist to subcommands
  gdb: rename cmd_list_element::cmd_pointer to target
  gdb: add cmd_list_element::is_alias
  gdb: add cmd_list_element::is_prefix
  gdb: add cmd_list_element::is_command_class_help

 gdb/auto-load.c                       |   2 +-
 gdb/cli/cli-cmds.c                    |   6 +-
 gdb/cli/cli-decode.c                  | 217 +++++++++++++-------------
 gdb/cli/cli-decode.h                  |  34 ++--
 gdb/cli/cli-script.c                  |  30 ++--
 gdb/cli/cli-setshow.c                 |  12 +-
 gdb/command.h                         |   5 +-
 gdb/completer.c                       |   8 +-
 gdb/guile/scm-cmd.c                   |   4 +-
 gdb/python/py-cmd.c                   |   6 +-
 gdb/top.c                             |   6 +-
 gdb/unittests/command-def-selftests.c |   8 +-
 12 files changed, 166 insertions(+), 172 deletions(-)

-- 
2.31.1


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

end of thread, other threads:[~2021-05-17 18:09 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-14 19:38 [PATCH 0/7] Minor improvements to cmd_list_element Simon Marchi
2021-05-14 19:38 ` [PATCH 1/7] gdb: move cmd_list_element::prefixname to cli/cli-decode.c Simon Marchi
2021-05-14 19:38 ` [PATCH 2/7] gdb: don't handle old == nullptr in add_alias_cmd Simon Marchi
2021-05-16 13:37   ` Tom Tromey
2021-05-17 17:36     ` Simon Marchi
2021-05-17 18:08       ` Tom Tromey
2021-05-14 19:38 ` [PATCH 3/7] gdb: rename cmd_list_element::prefixlist to subcommands Simon Marchi
2021-05-14 19:38 ` [PATCH 4/7] gdb: rename cmd_list_element::cmd_pointer to target Simon Marchi
2021-05-14 19:38 ` [PATCH 5/7] gdb: add cmd_list_element::is_alias Simon Marchi
2021-05-14 19:38 ` [PATCH 6/7] gdb: add cmd_list_element::is_prefix Simon Marchi
2021-05-14 19:38 ` [PATCH 7/7] gdb: add cmd_list_element::is_command_class_help Simon Marchi
2021-05-16 13:40 ` [PATCH 0/7] Minor improvements to cmd_list_element Tom Tromey
2021-05-17 18:05   ` Simon Marchi

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