diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2015-11-07 11:14:20 +0000 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2015-11-11 09:03:25 +0000 |
commit | f3575e08379b36ab3a286c8fb5838a2d54424073 (patch) | |
tree | 497454f2fa56ac25eef52a28b6f641fcba250fdd /gdb/cli | |
parent | be20f084f1dfbbd5f08d220469128ec18727941d (diff) | |
download | gdb-f3575e08379b36ab3a286c8fb5838a2d54424073.zip gdb-f3575e08379b36ab3a286c8fb5838a2d54424073.tar.gz gdb-f3575e08379b36ab3a286c8fb5838a2d54424073.tar.bz2 |
gdb: Use class_info when creating info commands.
The 'add_info' function is used for creating info commands, these
commands should be created as 'class_info' rather than 'no_class'.
gdb/ChangeLog:
* cli/cli-decode.c (add_info): Switch to class_info.
Diffstat (limited to 'gdb/cli')
-rw-r--r-- | gdb/cli/cli-decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/cli/cli-decode.c b/gdb/cli/cli-decode.c index cab2336..948cba3 100644 --- a/gdb/cli/cli-decode.c +++ b/gdb/cli/cli-decode.c @@ -855,7 +855,7 @@ delete_cmd (const char *name, struct cmd_list_element **list, struct cmd_list_element * add_info (const char *name, cmd_cfunc_ftype *fun, const char *doc) { - return add_cmd (name, no_class, fun, doc, &infolist); + return add_cmd (name, class_info, fun, doc, &infolist); } /* Add an alias to the list of info subcommands. */ |