This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[ob] Don't use periods and commas in first line of doc strings
- From: Eli Zaretskii <eliz at gnu dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 09 May 2008 11:18:04 +0300
- Subject: [ob] Don't use periods and commas in first line of doc strings
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
We cannot do this, since commands such as "apropos" and "help" that
show only one line for each command, stop at the first period. This
would cause truncated display like below:
(gdb) apropos thread
...
set print thread-events -- Set printing of thread events (e
Committed as obvious.
2008-05-09 Eli Zaretskii <eliz@gnu.org>
* thread.c (_initialize_thread): Don't use commas and periods in
first line of doc string of "set/show print thread-events".
Index: gdb/thread.c
===================================================================
RCS file: /cvs/src/src/gdb/thread.c,v
retrieving revision 1.68
diff -u -r1.68 thread.c
--- gdb/thread.c 4 May 2008 19:39:00 -0000 1.68
+++ gdb/thread.c 9 May 2008 08:12:59 -0000
@@ -815,8 +815,8 @@
add_setshow_boolean_cmd ("thread-events", no_class,
&print_thread_events, _("\
-Set printing of thread events (e.g., thread start and exit)."), _("\
-Show printing of thread events (e.g., thread start and exit)."), NULL,
+Set printing of thread events (such as thread start and exit)."), _("\
+Show printing of thread events (such as thread start and exit)."), NULL,
NULL,
show_print_thread_events,
&setprintlist, &showprintlist);