From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18237 invoked by alias); 30 Jan 2009 17:18:30 -0000 Received: (qmail 18221 invoked by uid 22791); 30 Jan 2009 17:18:27 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 30 Jan 2009 17:18:22 +0000 Received: (qmail 23051 invoked from network); 30 Jan 2009 17:18:20 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 30 Jan 2009 17:18:20 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: Report current thread in -thread-list-ids output Date: Fri, 30 Jan 2009 21:10:00 -0000 User-Agent: KMail/1.9.10 Cc: Vladimir Prus , gdb-patches@sources.redhat.com, Eli Zaretskii References: <200901301939.43053.vladimir@codesourcery.com> In-Reply-To: <200901301939.43053.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901301719.35433.pedro@codesourcery.com> 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: 2009-01/txt/msg00542.txt.bz2 On Friday 30 January 2009 16:39:42, Vladimir Prus wrote: > > This patch makes the MI -thread-list-ids report the current thread. > It is advantageous for a frontend like Eclipse, that does not report > any details about a thread whatsoever except for the id, and whether > a thread is selected. If -thread-list-ids reports current thread, then > Eclipse can use -thread-list-ids as opposed to 'info thread', and be > a little bit faster. > > The change in thread.c actually touches MI-only function, so I assume > I'm free to make this change. In any case, it looks good to me. This fixes PR8145, . > Eli, does the doc change look good? -- Pedro Alves From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18236 invoked by alias); 30 Jan 2009 17:18:29 -0000 Received: (qmail 18220 invoked by uid 22791); 30 Jan 2009 17:18:27 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (65.74.133.4) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 30 Jan 2009 17:18:22 +0000 Received: (qmail 23051 invoked from network); 30 Jan 2009 17:18:20 -0000 Received: from unknown (HELO orlando.local) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 30 Jan 2009 17:18:20 -0000 From: Pedro Alves To: gdb-patches@sourceware.org Subject: Re: Report current thread in -thread-list-ids output Date: Fri, 30 Jan 2009 20:36:00 -0000 User-Agent: KMail/1.9.10 Cc: Vladimir Prus , gdb-patches@sources.redhat.com, Eli Zaretskii References: <200901301939.43053.vladimir@codesourcery.com> In-Reply-To: <200901301939.43053.vladimir@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-ID: <200901301719.35433.pedro@codesourcery.com> 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: 2009-01/txt/msg00541.txt.bz2 Message-ID: <20090130203600.bUWyZs4OZ1jpc3RG3aD-rjto8-qqJnescjtLc7nHMmQ@z> On Friday 30 January 2009 16:39:42, Vladimir Prus wrote: > > This patch makes the MI -thread-list-ids report the current thread. > It is advantageous for a frontend like Eclipse, that does not report > any details about a thread whatsoever except for the id, and whether > a thread is selected. If -thread-list-ids reports current thread, then > Eclipse can use -thread-list-ids as opposed to 'info thread', and be > a little bit faster. > > The change in thread.c actually touches MI-only function, so I assume > I'm free to make this change. In any case, it looks good to me. This fixes PR8145, . > Eli, does the doc change look good? -- Pedro Alves