[RFA,09/12] Update help text in tracepoint.c

Message ID 20180430143731.30007-10-tom@tromey.com
State New
Headers show
Series
  • Small help text tweaks
Related show

Commit Message

Tom Tromey April 30, 2018, 2:37 p.m.
This changes the help text of a couple of commands in tracepoint.c to
follow the GNU style.

ChangeLog
2018-04-29  Tom Tromey  <tom@tromey.com>

	* tracepoint.c (_initialize_tracepoint): Update help text.

testsuite/ChangeLog
2018-04-30  Tom Tromey  <tom@tromey.com>

	* gdb.trace/tfind.exp: Update help tests.
---
 gdb/ChangeLog                     | 4 ++++
 gdb/testsuite/ChangeLog           | 4 ++++
 gdb/testsuite/gdb.trace/tfind.exp | 4 ++--
 gdb/tracepoint.c                  | 4 ++--
 4 files changed, 12 insertions(+), 4 deletions(-)

-- 
2.13.6

Comments

Pedro Alves May 4, 2018, 6:54 p.m. | #1
On 04/30/2018 03:37 PM, Tom Tromey wrote:
> This changes the help text of a couple of commands in tracepoint.c to

> follow the GNU style.

> 

> ChangeLog

> 2018-04-29  Tom Tromey  <tom@tromey.com>

> 

> 	* tracepoint.c (_initialize_tracepoint): Update help text.

> 

> testsuite/ChangeLog

> 2018-04-30  Tom Tromey  <tom@tromey.com>

> 

> 	* gdb.trace/tfind.exp: Update help tests.


OK.

Thanks,
Pedro Alves

Patch

diff --git a/gdb/testsuite/gdb.trace/tfind.exp b/gdb/testsuite/gdb.trace/tfind.exp
index c466862333..bbb7ec829d 100644
--- a/gdb/testsuite/gdb.trace/tfind.exp
+++ b/gdb/testsuite/gdb.trace/tfind.exp
@@ -34,11 +34,11 @@  gdb_test "tfind none"  ".*" ""
 
 # 6.2 test help tstart
 gdb_test "help tstart" \
-    "Start trace data collection\.\[\r\n\]+Usage: tstart \\\[ <notes> \.\.\. \\\]\[\r\n\]+Any arguments supplied are recorded with the trace as a note and\[\r\n\]+reported by tstatus \\(if the target supports trace notes\\)\." \
+    "Start trace data collection\.\[\r\n\]+Usage: tstart \\\[NOTES\\\]\.\.\.\[\r\n\]+Any arguments supplied are recorded with the trace as a note and\[\r\n\]+reported by tstatus \\(if the target supports trace notes\\)\." \
     "6.2: help tstart"
 # 7.2 test help tstop
 gdb_test "help tstop" \
-    "Stop trace data collection\.\[\r\n\]+Usage: tstop \\\[ <notes> \.\.\. \\\]\[\r\n\]+Any arguments supplied are recorded with the trace as a stop reason and\[\r\n\]+reported by tstatus \\(if the target supports trace notes\\)\." \
+    "Stop trace data collection\.\[\r\n\]+Usage: tstop \\\[NOTES\\\]\.\.\.\[\r\n\]+Any arguments supplied are recorded with the trace as a stop reason and\[\r\n\]+reported by tstatus \\(if the target supports trace notes\\)\." \
     "7.2: help tstop"
 
 # 8.38 test help tfind
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index 7e173ce75d..eff86756c6 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -4086,13 +4086,13 @@  De-select any trace frame and resume 'live' debugging."),
 
   add_com ("tstop", class_trace, tstop_command, _("\
 Stop trace data collection.\n\
-Usage: tstop [ <notes> ... ]\n\
+Usage: tstop [NOTES]...\n\
 Any arguments supplied are recorded with the trace as a stop reason and\n\
 reported by tstatus (if the target supports trace notes)."));
 
   add_com ("tstart", class_trace, tstart_command, _("\
 Start trace data collection.\n\
-Usage: tstart [ <notes> ... ]\n\
+Usage: tstart [NOTES]...\n\
 Any arguments supplied are recorded with the trace as a note and\n\
 reported by tstatus (if the target supports trace notes)."));