From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id PfN9AXnlGGjNCRYAWB0awg (envelope-from ) for ; Mon, 05 May 2025 12:21:13 -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=QCJMmL/v; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id EA9751E10E; Mon, 5 May 2025 12:21: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=-10.1 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,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE 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 59E181E089 for ; Mon, 5 May 2025 12:21:12 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 961E53858294 for ; Mon, 5 May 2025 16:21:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 961E53858294 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=QCJMmL/v Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.19]) by sourceware.org (Postfix) with ESMTPS id 04D483858C78 for ; Mon, 5 May 2025 16:19:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 04D483858C78 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 04D483858C78 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=198.175.65.19 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1746461999; cv=none; b=wDYXUlaYwShuJiqIRwiV4a9WipIKBpsLWbLGhA6Gq3B3ljNeIfqa4RZaS8A5+JmkMmDUhAHe4qnFSBuIbbHJBDcvFf4K60YKaTelnDLOnW1HKy//xg8i5unT7dBW0HeLq6WbkSQmib5McD/3GRU48Wc5dkFsDMCtTrtZCw5F4DQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1746461999; c=relaxed/simple; bh=UGN0LYyKfn7kzUJ+Shd6I0Tdjy8V57EgqSfAnibk+oI=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=Q5uEonfC9MNTx1gmIzGZfcTJGIEJW5efpxu/Fpm85WwMIdqdLvFzMtfeB4C54ZFt57FHC4+JANeKMknV5VsucXR6nkOgda6uLaPQvPgCG0pFg8kJQwqkwtPFJ+Q4UbmdeMqR7qd9Z94zsnC51o9iSTc8CXYcfGkKow9ZTcTFX4U= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 04D483858C78 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1746461999; x=1777997999; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=UGN0LYyKfn7kzUJ+Shd6I0Tdjy8V57EgqSfAnibk+oI=; b=QCJMmL/vfsJZ9FCEQTWHh45rktp8kGBA0et98kl4ZO6PgBd6LRd0/zV2 JHJcGxRskEbUFYyqEGGtATF9k9UXxVUiUxTghgaoP9P4gqOlJI1w30Ab/ fwVtz3KgUfSaazaRDQscxxMjs3K15A60cF8Mzlk1Y6BCINEap6/rAl4SZ wx+6s+8SSZSL/hadhk8YJTdNcyj/hm/3mPS0nKqvAl9f6HolwAMwDoUky hGAqP3mpWHiTf37II1ObBswHujrANQJAJirhs5aHQZBjQWnFv/yi1W7u7 xIDl29Y4XJk2aFtrjRkGIHAbS/TSxfck0z6KtuPr4iivy/6XdzQBjlTyf Q==; X-CSE-ConnectionGUID: hwQ+PzCrQrCzYqJOUC73Ag== X-CSE-MsgGUID: CtKWWC9/RrCI277Lk2Xtzg== X-IronPort-AV: E=McAfee;i="6700,10204,11424"; a="47961786" X-IronPort-AV: E=Sophos;i="6.15,264,1739865600"; d="scan'208";a="47961786" Received: from fmviesa001.fm.intel.com ([10.60.135.141]) by orvoesa111.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2025 09:19:58 -0700 X-CSE-ConnectionGUID: E2xrcw55QtKBkAUre85THw== X-CSE-MsgGUID: l5nmlmYyQ+GiEpuPJaIEBA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,264,1739865600"; d="scan'208";a="166351807" Received: from gkldtt-dev-004.igk.intel.com (HELO localhost) ([10.123.221.202]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 May 2025 09:19:56 -0700 From: Tankut Baris Aktemur To: gdb-patches@sourceware.org Cc: guinevere@redhat.com, eliz@gnu.org, pedro@palves.net Subject: [PATCH v4 0/3] Option to show stopped/running threads only Date: Mon, 5 May 2025 18:19:28 +0200 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 v4 of a series that introduces options to filter the output of "info threads". V3 is available at https://inbox.sourceware.org/gdb-patches/cover.1743772891.git.tankut.baris.aktemur@intel.com/ In this revision I address Pedro's comments he gave on V3. Eli had previously approved the documentation changes, but I needed to update the docs in this revision. Hence, I removed his "Reviewed-By" and would like to request a doc review again. Best regards, Baris Tankut Baris Aktemur (3): gdb: pass info_threads_opts to print_thread_info_1 gdb: update "info threads" output when no threads match the arguments gdb: add '-stopped' and '-running' options to "info threads" gdb/NEWS | 12 ++ gdb/doc/gdb.texinfo | 10 +- gdb/testsuite/gdb.base/options.exp | 16 ++- gdb/testsuite/gdb.multi/tids.exp | 4 +- .../gdb.threads/current-lwp-dead.exp | 2 +- .../gdb.threads/info-threads-options.c | 77 ++++++++++ .../gdb.threads/info-threads-options.exp | 131 ++++++++++++++++++ .../gdb.threads/thread-bp-deleted.exp | 2 +- gdb/thread.c | 122 +++++++++------- 9 files changed, 321 insertions(+), 55 deletions(-) create mode 100644 gdb/testsuite/gdb.threads/info-threads-options.c create mode 100644 gdb/testsuite/gdb.threads/info-threads-options.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