diff mbox

[3/3] deprecate "skip enable/etc.", doc string cleanup

Message ID 94eb2c11107af072b80530c449c1@google.com
State New
Headers show

Commit Message

Doug Evans April 18, 2016, 3:48 p.m. UTC
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.

    add_com ("printf", class_vars, printf_command, _("\
diff mbox

Patch

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);