gdb: add cmd_list_element::is_prefix
authorSimon Marchi <simon.marchi@polymtl.ca>
Fri, 14 May 2021 19:38:49 +0000 (15:38 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Mon, 17 May 2021 18:01:26 +0000 (14:01 -0400)
commit3d0b35641081d0f57d32583093f3297ff39b7379
treefc6be36e7ce048ed74ce4597e0d365b1be4623d3
parent1be99b11f8d1a8fd4049fee1c0eeaef73b3e6d1d
gdb: add cmd_list_element::is_prefix

Same idea as the previous patch, but for prefix instead of alias.

gdb/ChangeLog:

* cli/cli-decode.h (cmd_list_element) <is_prefix>: New, use it.

Change-Id: I76a9d2e82fc8d7429904424674d99ce6f9880e2b
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/completer.c
gdb/guile/scm-cmd.c
gdb/python/py-cmd.c
gdb/top.c
gdb/unittests/command-def-selftests.c