gdb: rename cmd_list_element::prefixlist to subcommands
authorSimon Marchi <simon.marchi@polymtl.ca>
Mon, 17 May 2021 18:01:08 +0000 (14:01 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 17 May 2021 18:01:08 +0000 (14:01 -0400)
commit14b42fc4a0edc412e02a6c9cfe7eb48e67da3145
tree21dc1064114f57a24740462b0f30a2c5ca581635
parentecd0a6b35d32aa6aca913e2d0348cfdf7e78d6c3
gdb: rename cmd_list_element::prefixlist to subcommands

While browsing this code, I found the name "prefixlist" really
confusing.  I kept reading it as "list of prefixes".  Which it isn't:
it's a list of sub-commands, for a prefix command.  I think that
renaming it to "subcommands" would make things clearer.

gdb/ChangeLog:

* Rename "prefixlist" parameters to "subcommands" throughout.
* cli/cli-decode.h (cmd_list_element) <prefixlist>: Rename to...
<subcommands>: ... this.
* cli/cli-decode.c (lookup_cmd_for_prefixlist): Rename to...
(lookup_cmd_with_subcommands): ... this.

Change-Id: I150da10d03052c2420aa5b0dee41f422e2a97928
13 files changed:
gdb/ChangeLog
gdb/auto-load.c
gdb/cli/cli-cmds.c
gdb/cli/cli-decode.c
gdb/cli/cli-decode.h
gdb/cli/cli-script.c
gdb/cli/cli-setshow.c
gdb/command.h
gdb/completer.c
gdb/guile/scm-cmd.c
gdb/python/py-cmd.c
gdb/top.c
gdb/unittests/command-def-selftests.c
This page took 0.026072 seconds and 4 git commands to generate.