This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH 3/3] deprecate "skip enable/etc.", doc string cleanup
- From: Doug Evans <dje at google dot com>
- To: gdb-patches at sourceware dot org, eliz at gnu dot org
- Date: Mon, 18 Apr 2016 15:48:15 +0000
- Subject: [PATCH 3/3] deprecate "skip enable/etc.", doc string cleanup
- Authentication-results: sourceware.org; auth=none
This patch cleans up the doc strings of the "display" commands.
2016-04-17 Doug Evans <dje@google.com>
* printcmd.c (_initialize_printcmd): Make doc strings for display
enable/disable/delete commands consistent with breakpoint commands.
diff --git a/gdb/printcmd.c b/gdb/printcmd.c
index f5c4211..821a276 100644
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -2533,12 +2533,13 @@ with this command or \"print\"."));
#endif
add_info ("display", display_info, _("\
-Expressions to display when program stops, with code numbers."));
+List expressions to display when program stops, with code numbers.\n\
+All \"display\" expressions are printed, any argument is ignored."));
add_cmd ("undisplay", class_vars, undisplay_command, _("\
-Cancel some expressions to be displayed when program stops.\n\
-Arguments are the code numbers of the expressions to stop displaying.\n\
-No argument means cancel all automatic-display expressions.\n\
+Cancel some expressions to be displayed when program stops.\n"
+EDDI_USAGE_DOC_STRING_WITH_ALL ("display", "undisplay", "deleted")
+"\n\
\"delete display\" has the same effect as this command.\n\
Do \"info display\" to see current list of code numbers."),
&cmdlist);
@@ -2553,21 +2554,21 @@ With no argument, display all currently requested
auto-display expressions.\n\
Use \"undisplay\" to cancel display requests previously made."));
add_cmd ("display", class_vars, enable_display_command, _("\
-Enable some expressions to be displayed when program stops.\n\
-Arguments are the code numbers of the expressions to resume displaying.\n\
-No argument means enable all automatic-display expressions.\n\
+Enable some expressions to be displayed when program stops.\n"
+EDDI_USAGE_DOC_STRING_WITH_ALL ("display", "enable display", "enabled")
+"\n\
Do \"info display\" to see current list of code numbers."), &enablelist);
add_cmd ("display", class_vars, disable_display_command, _("\
-Disable some expressions to be displayed when program stops.\n\
-Arguments are the code numbers of the expressions to stop displaying.\n\
-No argument means disable all automatic-display expressions.\n\
+Disable some expressions to be displayed when program stops.\n"
+EDDI_USAGE_DOC_STRING_WITH_ALL ("display", "disable display", "disabled")
+"\n\
Do \"info display\" to see current list of code numbers."), &disablelist);
add_cmd ("display", class_vars, undisplay_command, _("\
-Cancel some expressions to be displayed when program stops.\n\
-Arguments are the code numbers of the expressions to stop displaying.\n\
-No argument means cancel all automatic-display expressions.\n\
+Cancel some expressions to be displayed when program stops.\n"
+EDDI_USAGE_DOC_STRING_WITH_ALL ("display", "delete display", "deleted")
+"\n\
Do \"info display\" to see current list of code numbers."), &deletelist);
add_com ("printf", class_vars, printf_command, _("\