From patchwork Fri Apr 20 21:19:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philippe Waroquiers X-Patchwork-Id: 26885 Received: (qmail 80254 invoked by alias); 20 Apr 2018 21:19:25 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Delivered-To: mailing list gdb-patches@sourceware.org Received: (qmail 80160 invoked by uid 89); 20 Apr 2018 21:19:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-27.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy=descending, online X-HELO: mailsec110.isp.belgacom.be Received: from mailsec110.isp.belgacom.be (HELO mailsec110.isp.belgacom.be) (195.238.20.106) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 20 Apr 2018 21:19:14 +0000 IronPort-PHdr: =?us-ascii?q?9a23=3Aqn8wrhKPVnH5T9en3NmcpTZWNBhigK39O0sv0rFi?= =?us-ascii?q?tYgeKf7xwZ3uMQTl6Ol3ixeRBMOHs6kC07KempujcFRI2YyGvnEGfc4EfD4+ou?= =?us-ascii?q?JSoTYdBtWYA1bwNv/gYn9yNs1DUFh44yPzahANS47xaFLIv3K98yMZFAnhOgpp?= =?us-ascii?q?POT1HZPZg9iq2+yo9JDffwtFiCChbb9uMR67sRjfus4KjIV4N60/0AHJonxGe+?= =?us-ascii?q?RXwWNnO1eelAvi68mz4ZBu7T1et+ou+MBcX6r6eb84TaFDAzQ9L281/szrugLd?= =?us-ascii?q?QgaJ+3ART38ZkhtMAwjC8RH6QpL8uTb0u+ZhxCWXO9D9QLYpUjqg8qhrUgflhi?= =?us-ascii?q?cZOTAk/m/Zict+gblHrB69vRFz35TZbJ2JOPd4Y6jTfckaRW1EXstJTSJBAoK8?= =?us-ascii?q?b48OD+oZJeZXsZT2qFsUohukAgmsHf7vyj5WiX/sxq0xzuMsERnG3AwhG9IOsW?= =?us-ascii?q?zUrM3rO6sIX+G61rPIzTLab/NL2Dfy9pLIcgs6rPGXXrJxcczRxlczFw/flVqf?= =?us-ascii?q?t5XoMjWI3eoOq2iW9+ltWf+1h2I5pAx9vCKjy8guh4XTiI8Z1FbJ/jhjzokvP9?= =?us-ascii?q?23Ukt7bMahEJtXqi6VKZN7QtgnQ2F0oCY6zaAGuYKjcCgK1psnwxnfZuSCc4eV?= =?us-ascii?q?+B7jVOGRITJmi359ebK/gQi98VS4x+D/S8W4ykhGoyVbntXWuX0A1Qbf58aZRv?= =?us-ascii?q?dl+0euwzeP1wTd6uFeJkA0kLLWK4Yhwr4xkpoTsFzDHjfol0nsgq6ZbF8k+u+x?= =?us-ascii?q?6+T6Y7XpuIWcN5RvhwHlMaQvmsq/DvokMgQURGeU5/yw1Kf/8k3hXLVKkvo2n7?= =?us-ascii?q?HWsJ/HPssXv7a5DBVJ0ok/6xawESym3c8DnXkAMVJFYg6IgJbnOl7UOvD3E+2z?= =?us-ascii?q?g1O2kDdk3/rGJKHuAo3RLnjfl7fsZa59605dyAo3zNBf/4pUBa8bLPP9QEDxrt?= =?us-ascii?q?vYDgYkMwy13ennEs5925gFWWKMAq6ZNr3dsUOS6u00PebfLLMS7TnxIb097uLl?= =?us-ascii?q?jXIisUQaYLOi0IQecn3+Ge5pcGuDZn+5utcAFWYSpgd2c+Xwj0SfUDNJfD7mR6?= =?us-ascii?q?I94jAjEI/gEo7ZQZmwgbGbxw+gHYxQa3wAAF3aQiSgTJmNR/pZMHHaGcRmiDFR?= =?us-ascii?q?DbU=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2CTEQBRWNpa/yAv8lFbg3NCNmMojEqMG?= =?us-ascii?q?gGCJAFdjmKGDguDVYEUgkYiNxUBAgEBAQEBAQIBayiCNSKDKCNPSzeFEakThFi?= =?us-ascii?q?DaoIuiVo/iVmFCAKXcQiBYYZKhgkLjE0BK49+gSUyIoFSbVOCQ4JIjgg9MI9mA?= =?us-ascii?q?QE?= X-IPAS-Result: =?us-ascii?q?A2CTEQBRWNpa/yAv8lFbg3NCNmMojEqMGgGCJAFdjmKGDgu?= =?us-ascii?q?DVYEUgkYiNxUBAgEBAQEBAQIBayiCNSKDKCNPSzeFEakThFiDaoIuiVo/iVmFC?= =?us-ascii?q?AKXcQiBYYZKhgkLjE0BK49+gSUyIoFSbVOCQ4JIjgg9MI9mAQE?= Received: from 32.47-242-81.adsl-dyn.isp.belgacom.be (HELO md.home) ([81.242.47.32]) by relay.skynet.be with ESMTP/TLS/DHE-RSA-AES128-GCM-SHA256; 20 Apr 2018 23:19:11 +0200 From: Philippe Waroquiers To: gdb-patches@sourceware.org Cc: Philippe Waroquiers Subject: [RFA] Improve on-line help for thread_apply_command and thread_apply_all_command. Date: Fri, 20 Apr 2018 23:19:00 +0200 Message-Id: <20180420211900.10064-1-philippe.waroquiers@skynet.be> X-IsSubscribed: yes Add a Usage: line for thread_apply_command, in particular to mention the thread ID list. In thread_apply_command and thread_apply_all_command help, use uppercase for arg names, as this style seems to be more standard. 2018-04-20 Philippe Waroquiers * thread.c (_initialize_thread): improve on-line help for thread_apply_command and thread_apply_all_command. --- gdb/thread.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gdb/thread.c b/gdb/thread.c index 23aa5ba117..a09d7e0ba0 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -2028,15 +2028,17 @@ The new thread ID must be currently known."), &thread_cmd_list, "thread ", 1, &cmdlist); add_prefix_cmd ("apply", class_run, thread_apply_command, - _("Apply a command to a list of threads."), + _("Apply a command to a list of threads.\n\ +Usage: thread apply ID... COMMAND\n\ +ID is a space-separated list of IDs of threads to apply COMMAND on."), &thread_apply_list, "thread apply ", 1, &thread_cmd_list); add_cmd ("all", class_run, thread_apply_all_command, _("\ Apply a command to all threads.\n\ \n\ -Usage: thread apply all [-ascending] \n\ --ascending: Call for all threads in ascending order.\n\ +Usage: thread apply all [-ascending] COMMAND\n\ +-ascending: Call COMMAND for all threads in ascending order.\n\ The default is descending order.\ "), &thread_apply_list);