diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2018-02-13 00:32:53 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2018-02-13 00:33:04 -0500 |
commit | 387cd15b93fdca3a66bbda427c4e1d9340bfb532 (patch) | |
tree | f2f0d972f642089ec8fb8937a19a2e642eaf7aa5 | |
parent | 0f3f3a55b561e8560a6df2560363143751b5d9af (diff) | |
download | gdb-387cd15b93fdca3a66bbda427c4e1d9340bfb532.zip gdb-387cd15b93fdca3a66bbda427c4e1d9340bfb532.tar.gz gdb-387cd15b93fdca3a66bbda427c4e1d9340bfb532.tar.bz2 |
Fix prefix of maint set/show per-command
I noticed this:
(gdb) apropos per-command
maintenance set per-command -- Per-command statistics settings
set per-command space -- Set whether to display per-command space usage
set per-command symtab -- Set whether to display per-command symtab statistics
set per-command time -- Set whether to display per-command execution time
maintenance show per-command -- Show per-command statistics settings
show per-command space -- Show whether to display per-command space usage
show per-command symtab -- Show whether to display per-command symtab statistics
show per-command time -- Show whether to display per-command execution time
The subcommands of "maintenance set per-command" are missing the
maintenance keyword. This is because that command is registered with
the wrong prefix. This patch fixes that.
gdb/ChangeLog:
* maint.c (_initialize_maint_cmds): Fix prefix of maint set/show
per-command.
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/maint.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 32ff55c..6ec60ae 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2018-02-13 Simon Marchi <simon.marchi@polymtl.ca> + + * maint.c (_initialize_maint_cmds): Fix prefix of maint set/show + per-command. + 2018-02-12 Andrew Burgess <andrew.burgess@embecosm.com> * dwarf2read.c (dwarf2_release_queue): Delete function, move body diff --git a/gdb/maint.c b/gdb/maint.c index 70e0011..a8a1fcb 100644 --- a/gdb/maint.c +++ b/gdb/maint.c @@ -1046,12 +1046,12 @@ This command has been moved to \"demangle\"."), add_prefix_cmd ("per-command", class_maintenance, set_per_command_cmd, _("\ Per-command statistics settings."), - &per_command_setlist, "set per-command ", + &per_command_setlist, "maintenance set per-command ", 1/*allow-unknown*/, &maintenance_set_cmdlist); add_prefix_cmd ("per-command", class_maintenance, show_per_command_cmd, _("\ Show per-command statistics settings."), - &per_command_showlist, "show per-command ", + &per_command_showlist, "maintenance show per-command ", 0/*allow-unknown*/, &maintenance_show_cmdlist); add_setshow_boolean_cmd ("time", class_maintenance, |