summaryrefslogtreecommitdiff
path: root/gdb/auto-load.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2021-05-14 15:38:49 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2021-05-17 14:01:26 -0400
commit3d0b35641081d0f57d32583093f3297ff39b7379 (patch)
treefc6be36e7ce048ed74ce4597e0d365b1be4623d3 /gdb/auto-load.c
parent1be99b11f8d1a8fd4049fee1c0eeaef73b3e6d1d (diff)
downloadbinutils-gdb-3d0b35641081d0f57d32583093f3297ff39b7379.tar.gz
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
Diffstat (limited to 'gdb/auto-load.c')
-rw-r--r--gdb/auto-load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/auto-load.c b/gdb/auto-load.c
index 7745aa65b03..9cd70f174c3 100644
--- a/gdb/auto-load.c
+++ b/gdb/auto-load.c
@@ -1465,7 +1465,7 @@ info_auto_load_cmd (const char *args, int from_tty)
{
ui_out_emit_tuple option_emitter (uiout, "option");
- gdb_assert (!list->subcommands);
+ gdb_assert (!list->is_prefix ());
gdb_assert (list->type == not_set_cmd);
uiout->field_string ("name", list->name);