From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id GBl0Ga6xjV8gSwAAWB0awg (envelope-from ) for ; Mon, 19 Oct 2020 11:33:02 -0400 Received: by simark.ca (Postfix, from userid 112) id 661E31EDF4; Mon, 19 Oct 2020 11:33:02 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id C73771E4B5 for ; Mon, 19 Oct 2020 11:33:01 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 62AFC388A43A; Mon, 19 Oct 2020 15:33:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 62AFC388A43A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1603121581; bh=s1HBin8YjjZcCLZoqrVuFQ3RpCgjRAz8haZ05YN3b8U=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=lEacin1LYtNDUoXXMvjvMyVk5yIlvWWgayy5Y2js+Lntpj+vHfuGjgu9KazwEK/9/ igZBg30XO9pFY6f1EN+6wLH9eFqlxsYAykn1Bzfx7TbT/Zgd+4rJDJDGFEZCLlnZOO kc1PcJJ5NdXc2yJD9FtdfxaAx5LuFHMbS7OSHhEY= Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by sourceware.org (Postfix) with ESMTPS id 8F11A388A42F for ; Mon, 19 Oct 2020 15:32:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8F11A388A42F IronPort-SDR: 0nbhBBOkmMG62lVJkmDkyvCGY359P6Y5UfjpIn04btPlnJYGYzEA1CNJe/4RaSNT3kHNHUPQUs 6GODmL2FpPCQ== X-IronPort-AV: E=McAfee;i="6000,8403,9778"; a="228688120" X-IronPort-AV: E=Sophos;i="5.77,394,1596524400"; d="scan'208";a="228688120" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Oct 2020 08:32:57 -0700 IronPort-SDR: iluiSYe2aa9R8OmPH+zkLBLCtUBwLIbvK6ko409fNXi480r2BVHCQPFVLN9j5mGE7vnv57Pr/F z3V2mWXuGepA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,394,1596524400"; d="scan'208";a="422213647" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 19 Oct 2020 08:32:57 -0700 Received: from ulvlx001.iul.intel.com (ulvlx001.iul.intel.com [172.28.207.17]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id 09JFWuAG027064; Mon, 19 Oct 2020 16:32:56 +0100 Received: from ulvlx001.iul.intel.com (localhost [127.0.0.1]) by ulvlx001.iul.intel.com with ESMTP id 09JFWucP028637; Mon, 19 Oct 2020 17:32:56 +0200 Received: (from taktemur@localhost) by ulvlx001.iul.intel.com with LOCAL id 09JFWtRK028633; Mon, 19 Oct 2020 17:32:55 +0200 To: gdb-patches@sourceware.org Subject: [PATCH] gdb/thread: fine-tune 'info threads' help text Date: Mon, 19 Oct 2020 17:32:38 +0200 Message-Id: <1603121558-28398-1-git-send-email-tankut.baris.aktemur@intel.com> X-Mailer: git-send-email 1.7.0.7 X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Tankut Baris Aktemur via Gdb-patches Reply-To: Tankut Baris Aktemur Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" The help text of 'info threads' is below: (gdb) help info threads Display currently known threads. Usage: info threads [OPTION]... [ID]... Options: -gid Show global thread IDs.If ID is given, it is a space-separated list of IDs of threads to display. Otherwise, all threads are displayed. (gdb) I think the "If ID is given ..." info should have come right below the the usage line. This patch reorganizes the text so that we get (gdb) help info threads Display currently known threads. Usage: info threads [OPTION]... [ID]... If ID is given, it is a space-separated list of IDs of threads to display. Otherwise, all threads are displayed. Options: -gid Show global thread IDs. (gdb) gdb/ChangeLog: 2020-10-19 Tankut Baris Aktemur * thread.c (_initialize_thread): Fine-tune the help text of 'info threads'. --- gdb/thread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/thread.c b/gdb/thread.c index d4994005449..d83244383d3 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -2183,11 +2183,11 @@ _initialize_thread () = gdb::option::build_help (_("\ Display currently known threads.\n\ Usage: info threads [OPTION]... [ID]...\n\ +If ID is given, it is a space-separated list of IDs of threads to display.\n\ +Otherwise, all threads are displayed.\n\ \n\ Options:\n\ -%OPTIONS%\ -If ID is given, it is a space-separated list of IDs of threads to display.\n\ -Otherwise, all threads are displayed."), +%OPTIONS%"), info_threads_opts); c = add_info ("threads", info_threads_command, info_threads_help.c_str ()); -- 2.17.1