From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id MOgGIhS22WeGHRQAWB0awg (envelope-from ) for ; Tue, 18 Mar 2025 14:06:12 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=DQfQh4c8; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 855C21E100; Tue, 18 Mar 2025 14:06:12 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from server2.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 ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id EEE4D1E0C0 for ; Tue, 18 Mar 2025 14:06:11 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7DA5C3858C39 for ; Tue, 18 Mar 2025 18:06:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7DA5C3858C39 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=DQfQh4c8 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by sourceware.org (Postfix) with ESMTPS id 18EE43858C56 for ; Tue, 18 Mar 2025 18:05:31 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 18EE43858C56 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 18EE43858C56 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.17 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742321132; cv=none; b=Abhi8RAh9SFQ5RdVO3qDIKI/P2t18ntm6m6lG7LZnk4j+Rl3EFdzglqSsik8WORHuqOZDh7bexX1GEcc+pdWztAXDaAPSQcutm2aBwTKpvSxrUdmSY3MzBqj7TSHj8ta7lBi6Ol6vEpFesp31ddJGIyj5++sXPxLqEMMlBTO1qk= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742321132; c=relaxed/simple; bh=1Edghp/bdhNofYCCyp52TlN8kP//5g1bcPi480uiKPI=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=CGEUvfMGyRegUKX6gDEgEcq0sHRa4dIpiIldmwkBXjEZHlKbmowC1XUdWeKhHVN/DsaYglRSSkGzU0fbQL4apv1x4WNseFwEls2MwFm4l8mbhuXcXlq/jjtSWZZsIQlPDQWwyPG89O1tDvCDfz2H4BzNuONxZYMY/RPwLUbOiRs= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 18EE43858C56 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1742321132; x=1773857132; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=1Edghp/bdhNofYCCyp52TlN8kP//5g1bcPi480uiKPI=; b=DQfQh4c8RXr4SU/CISPx2niZcyWVnPZAelf2kb/0Fbg/tAgu/t0s17MQ PtmfO9oJISBnGr8isXip2eifKxvNyACgTt0+lg7sHdtEi3OcrkZKpyvvC Zi6CLStWtUjVA94wk8z/+UXcGHafqMe4QpjBqzxy+hed6hemYMQcoabEO xTjHd+r0g6GVChNk7vckcogAEp31TyHSPTBmizzoCDEEOMkHyTwWNO48a D1GpIvaCL/FyxvHBR7ZHaRPxE1lHcsNSvO9tfzhLL7JQ6tQ1O1BwyyFxf J3FYFWtvo1PpV2UyDrF+RJBnnpEqFSTRTuonitfU9b115UV45JsuMAHoP g==; X-CSE-ConnectionGUID: 1vuCGilNSGabY7sGWu4Clw== X-CSE-MsgGUID: fXwRid/LSrKWzvzMIvhIOw== X-IronPort-AV: E=McAfee;i="6700,10204,11377"; a="43495932" X-IronPort-AV: E=Sophos;i="6.14,257,1736841600"; d="scan'208";a="43495932" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2025 11:05:31 -0700 X-CSE-ConnectionGUID: G/TTeKAjR9+bR6ymBvlqYg== X-CSE-MsgGUID: InchcWvoQRyqLvQhQk+TdA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.14,257,1736841600"; d="scan'208";a="123088984" Received: from gkldtt-dev-004.igk.intel.com (HELO localhost) ([10.123.221.202]) by fmviesa009-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Mar 2025 11:05:29 -0700 From: Tankut Baris Aktemur To: gdb-patches@sourceware.org Subject: [PATCH v2 0/2] Option to show stopped threads only Date: Tue, 18 Mar 2025 19:04:59 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 In-Reply-To: References: 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.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org Hi, This is the rebased version of https://inbox.sourceware.org/gdb-patches/cover.1680686220.git.tankut.baris.aktemur@intel.com/ As a comment, Eli had expressed his view that when "info threads" is given a single thread ID, the "-stopped" flag could be ignored. I didn't implement this yet but can gladly do that if that's the general preference. Regards, Baris Tankut Baris Aktemur (2): gdb: pass info_threads_opts to print_thread_info_1 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 | 86 +++++++++++-------- 6 files changed, 226 insertions(+), 37 deletions(-) create mode 100644 gdb/testsuite/gdb.threads/info-threads-stopped.c create mode 100644 gdb/testsuite/gdb.threads/info-threads-stopped.exp -- 2.34.1 Intel Deutschland GmbH Registered Address: Am Campeon 10, 85579 Neubiberg, Germany Tel: +49 89 99 8853-0, www.intel.de Managing Directors: Sean Fennelly, Jeffrey Schneiderman, Tiffany Doon Silva Chairperson of the Supervisory Board: Nicole Lau Registered Office: Munich Commercial Register: Amtsgericht Muenchen HRB 186928