From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30751 invoked by alias); 28 Nov 2011 18:40:27 -0000 Received: (qmail 30713 invoked by uid 22791); 28 Nov 2011 18:40:25 -0000 X-SWARE-Spam-Status: No, hits=-0.0 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL,TW_FC X-Spam-Check-By: sourceware.org Received: from mtaout22.012.net.il (HELO mtaout22.012.net.il) (80.179.55.172) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 28 Nov 2011 18:40:11 +0000 Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0LVD00F00VRSBI00@a-mtaout22.012.net.il> for gdb-patches@sourceware.org; Mon, 28 Nov 2011 20:40:09 +0200 (IST) Received: from HOME-C4E4A596F7 ([84.229.142.228]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LVD00DLGVUWCIO0@a-mtaout22.012.net.il>; Mon, 28 Nov 2011 20:40:08 +0200 (IST) Date: Mon, 28 Nov 2011 18:40:00 -0000 From: Eli Zaretskii Subject: Re: [RFC/WIP PATCH 13/14] Make "thread apply all" only loop over threads in the current set In-reply-to: <20111128154009.17761.49348.stgit@localhost6.localdomain6> To: Pedro Alves Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <831uss6qgh.fsf@gnu.org> References: <20111128153742.17761.21459.stgit@localhost6.localdomain6> <20111128154009.17761.49348.stgit@localhost6.localdomain6> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-11/txt/msg00780.txt.bz2 > From: Pedro Alves > Date: Mon, 28 Nov 2011 15:40:09 +0000 > > This makes "thread apply all" only loop over threads in the current > set instead of always all threads. That is, > > [all]> thread apply all printf "current thread is %d\n", $_thread > > Thread 3 (Thread 0x7ffff7028700 (LWP 30304)): > current thread is 3 > > Thread 2 (Thread 0x7ffff7829700 (LWP 30303)): > current thread is 2 > > Thread 1 (Thread 0x7ffff7fcb720 (LWP 30300)): > current thread is 1 > > vs > > [all]> [1.1] thread apply all printf "current thread is %d\n", $_thread > > Thread 1 (Thread 0x7ffff7fcb720 (LWP 30300)): > current thread is 1 > > > I think it might make sense to make "info threads" only list threads > of the current focus too. WDYT? Shouldn't this be under user control? Or are you sure no one will ever want to have the former?