]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Remove the "title" from the remote packet help
authorTom Tromey <tromey@adacore.com>
Fri, 7 Jun 2024 19:20:36 +0000 (13:20 -0600)
committerTom Tromey <tromey@adacore.com>
Mon, 11 Nov 2024 14:44:27 +0000 (07:44 -0700)
The help for remote packet controls includes the "title".  However
this is is just the parameter name, and not really useful to see
repeated in the help text.

Approved-By: Eli Zaretskii <eliz@gnu.org>
gdb/remote.c

index b65a1c3094ae985b673368708e635b2f5ba5f08d..f41129915683194237d1bba56d17df61ae89c063 100644 (file)
@@ -2503,11 +2503,9 @@ add_packet_config_cmd (const unsigned int which_packet, const char *name,
   packet_config *config = &remote_protocol_packets[which_packet];
 
   gdb::unique_xmalloc_ptr<char> set_doc
-    = xstrprintf ("Set use of remote protocol `%s' (%s) packet.",
-                 name, title);
+    = xstrprintf ("Set use of remote protocol `%s' packet.", name);
   gdb::unique_xmalloc_ptr<char> show_doc
-    = xstrprintf ("Show current use of remote protocol `%s' (%s) packet.",
-                 name, title);
+    = xstrprintf ("Show current use of remote protocol `%s' packet.", name);
   /* set/show TITLE-packet {auto,on,off} */
   gdb::unique_xmalloc_ptr<char> cmd_name = xstrprintf ("%s-packet", title);
   set_show_commands cmds