Bug 15047 - set/show commands ignore their class
Summary: set/show commands ignore their class
Status: NEW
Alias: None
Product: gdb
Classification: Unclassified
Component: cli (show other bugs)
Version: HEAD
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-21 21:39 UTC by Jan Kratochvil
Modified: 2013-01-21 21:39 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Kratochvil 2013-01-21 21:39:03 UTC
There is:
  add_setshow_enum_cmd ("target-file-system-kind",
                        class_files,

But it is displayed under class_vars:
(gdb) help data
set target-file-system-kind -- Set assumed file system kind [...]

While this class_files command does not display it at all:
(gdb) help files

"help data" is class_vars:
add_cmd ("data", class_vars, NULL, _("Examining data."), &cmdlist);

I guess it happens because:
add_prefix_cmd ("set", class_vars, ...); "data" is class_vars:

But that seems as a Bug to me.