gdb: Use class_info when creating info commands.
authorAndrew Burgess <andrew.burgess@embecosm.com>
Sat, 7 Nov 2015 11:14:20 +0000 (11:14 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Wed, 11 Nov 2015 09:03:25 +0000 (09:03 +0000)
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.

gdb/ChangeLog
gdb/cli/cli-decode.c

index beb604f1effba1bbeec62682e7fb1addd425bfa6..9edfd8d7b044bc758c00324f4bb56726603818a5 100644 (file)
@@ -1,3 +1,7 @@
+2015-11-11  Andrew Burgess  <andrew.burgess@embecosm.com>
+
+       * cli/cli-decode.c (add_info): Switch to class_info.
+
 2015-11-09  Joel Brobecker  <brobecker@adacore.com>
 
        * ada-lang.c (ada_is_wrapper_field): Add special handling
index cab2336ff8f67f192def4dded0f6ffd22e758b7d..948cba3a78600ee1c8fc44a8be17ce1761ac0058 100644 (file)
@@ -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.  */