From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YvNaAWc9LWQkwCMAWB0awg (envelope-from ) for ; Wed, 05 Apr 2023 05:20:39 -0400 Received: by simark.ca (Postfix, from userid 112) id E9D391E15D; Wed, 5 Apr 2023 05:20:38 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=cX+RiYkC; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 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 6B0E31E0D2 for ; Wed, 5 Apr 2023 05:20:38 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id A7C323858426 for ; Wed, 5 Apr 2023 09:20:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A7C323858426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680686437; bh=cGnnRZ3x5mFeWwtxeB8FDLMcc++ZGWK2eh7Pt+rZoC0=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=cX+RiYkC9SzzaQy+/nl3YgADBIaI1Dza2fKTS+4gcnU8C3H52Jl2npv0nPKyBLcxD ldkc3rPkGy2p/QH7w3TRXyqI3dpy6iBKqxxMjKS8Rr12TLIafvNR2elJU2HemnHC9U ejMqyI7fYOJiJecfpY6ZQiZNwzs+IHbNG31zNB/o= Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by sourceware.org (Postfix) with ESMTPS id E30093858C50 for ; Wed, 5 Apr 2023 09:20:16 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E30093858C50 X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="428693567" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="428693567" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2023 02:20:15 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10670"; a="663962924" X-IronPort-AV: E=Sophos;i="5.98,319,1673942400"; d="scan'208";a="663962924" Received: from ultl2604.iul.intel.com (HELO localhost) ([172.28.48.47]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Apr 2023 02:20:14 -0700 To: gdb-patches@sourceware.org Subject: [PATCH 0/3] Option to show stopped threads only Date: Wed, 5 Apr 2023 11:19:59 +0200 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" Hi, This is a short series that adds a "-stopped" option to the "info threads" to show stopped threads only. Regards Baris Tankut Baris Aktemur (3): gdb: pass info_threads_opts to print_thread_info_1 gdb, doc: add the missing '-gid' option to 'info threads' gdb: add a '-stopped' option to "info threads" gdb/NEWS | 7 ++ gdb/doc/gdb.texinfo | 6 +- gdb/testsuite/gdb.base/options.exp | 11 ++- .../gdb.threads/info-threads-stopped.c | 78 +++++++++++++++++++ .../gdb.threads/info-threads-stopped.exp | 75 ++++++++++++++++++ gdb/thread.c | 76 +++++++++++------- 6 files changed, 221 insertions(+), 32 deletions(-) create mode 100644 gdb/testsuite/gdb.threads/info-threads-stopped.c create mode 100644 gdb/testsuite/gdb.threads/info-threads-stopped.exp -- 2.25.1 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Christin Eisenschmid, Sharon Heck, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928