]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Remove "cmd_type" function
authorTom Tromey <tom@tromey.com>
Sun, 28 Jun 2020 16:33:06 +0000 (10:33 -0600)
committerTom Tromey <tom@tromey.com>
Sun, 28 Jun 2020 16:33:07 +0000 (10:33 -0600)
commitcd4c4c07f45fcd8e7c03ee3a0d90942a92250768
treeae594d27afbba39f3797e09b1226147f5454d313
parenta5122bfa078902c04668a59370ed33ef51783b0e
Remove "cmd_type" function

The cmd_type function only has a single caller, which is in the CLI
implementation code.  This patch removes the function, and moves the
cmd_types enum definition from command.h to cli-decode.h, fixing an 18
year old FIXME.

gdb/ChangeLog
2020-06-28  Tom Tromey  <tom@tromey.com>

* command.h (cmd_types): Remove.
(cmd_type): Don't declare.
* cli/cli-decode.h (enum cmd_types): Uncomment.  No longer a
typedef.
* cli/cli-cmds.c (setting_cmd): Use cmd->type directly.
* cli/cli-decode.c (cmd_type): Remove.
gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/cli/cli-decode.c
gdb/cli/cli-decode.h
gdb/command.h