From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15162 invoked by alias); 12 May 2008 18:19:34 -0000 Received: (qmail 15101 invoked by uid 22791); 12 May 2008 18:19:34 -0000 X-Spam-Check-By: sourceware.org Received: from bluesmobile.specifix.com (HELO bluesmobile.specifix.com) (216.129.118.140) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 12 May 2008 18:19:16 +0000 Received: from [127.0.0.1] (bluesmobile.specifix.com [216.129.118.140]) by bluesmobile.specifix.com (Postfix) with ESMTP id 21D0D3C10C for ; Mon, 12 May 2008 11:19:15 -0700 (PDT) Subject: Re: [RFA] Report the main thread. From: Michael Snyder To: gdb-patches@sources.redhat.com In-Reply-To: <18470.65050.501601.790988@kahikatea.snap.net.nz> References: <18469.39280.284106.858072@kahikatea.snap.net.nz> <18470.7609.400548.29643@kahikatea.snap.net.nz> <18470.65050.501601.790988@kahikatea.snap.net.nz> Content-Type: text/plain Date: Mon, 12 May 2008 22:22:00 -0000 Message-Id: <1210616354.4615.522.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 (2.10.3-7.fc7) Content-Transfer-Encoding: 7bit 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: 2008-05/txt/msg00382.txt.bz2 On Mon, 2008-05-12 at 02:09 +1200, Nick Roberts wrote: > Yes, I could count the new-thread annotations and and only trigger things when > there is more than one thread. It's simpler if I don't have to and I'm just > baffled why I need to go through these hoops for a small stop gap change that > no-one else is interested in using. The only requirement I can see on such a > patch is that it doesn't affect anybody else's use of Gdb, and I think my > original patch filled that requirement. We used to have to do the same thing for CLI. On Linux and Solaris (at least), as soon as you link with the thread library, you would always get a main thread (even if you hadn't created any subsidiary threads). So we would suppress the "info threads" display unless there was more than one thread. Or so I seem to recall...