diff mbox

[1/2] gdb: Use class_info when creating info commands.

Message ID 84ed820c9f4602ba3400d1c4c2585c0bb4dd89ec.1447171209.git.andrew.burgess@embecosm.com
State New
Headers show

Commit Message

Andrew Burgess Nov. 10, 2015, 4:03 p.m. UTC
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        | 4 ++++
 gdb/cli/cli-decode.c | 2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

Comments

Kevin Buettner Nov. 10, 2015, 10:16 p.m. UTC | #1
On Tue, 10 Nov 2015 16:03:50 +0000
Andrew Burgess <andrew.burgess@embecosm.com> wrote:

> 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.

LGTM.

Kevin
diff mbox

Patch

diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index beb604f..4316c95 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@ 
+2015-11-09  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
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.  */