• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
Aucun tag

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Révision0400cf2f56c41896ecf52b88baa1d6178eb10432 (tree)
l'heure2016-04-29 03:11:51
AuteurSimon Marchi <simon.marchi@eric...>
CommiterSimon Marchi

Message de Log

Don't show deprecated commands in help

Just like completion doesn't show deprecated commands, I think that help
should not list them, so that we don't incite users to use them.

gdb/ChangeLog:

* cli/cli-decode.c (help_cmd_list): Do not list commands that
are deprecated.

Change Summary

Modification

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
1+2016-04-28 Simon Marchi <simon.marchi@ericsson.com>
2+
3+ * cli/cli-decode.c (help_cmd_list): Do not list commands that
4+ are deprecated.
5+
16 2016-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
27
38 * remote.c (remote_start_remote): Detect PACKET_vFile_setfs.support.
--- a/gdb/cli/cli-decode.c
+++ b/gdb/cli/cli-decode.c
@@ -1194,13 +1194,16 @@ help_cmd_list (struct cmd_list_element *list, enum command_class theclass,
11941194 for (c = list; c; c = c->next)
11951195 {
11961196 if (c->abbrev_flag == 0
1197+ && !c->cmd_deprecated
11971198 && (theclass == all_commands
11981199 || (theclass == all_classes && c->func == NULL)
11991200 || (theclass == c->theclass && c->func != NULL)))
12001201 {
12011202 print_help_for_command (c, prefix, recurse, stream);
12021203 }
1203- else if (c->abbrev_flag == 0 && recurse
1204+ else if (c->abbrev_flag == 0
1205+ && recurse
1206+ && !c->cmd_deprecated
12041207 && theclass == class_user && c->prefixlist != NULL)
12051208 /* User-defined commands may be subcommands. */
12061209 help_cmd_list (*c->prefixlist, theclass, c->prefixname,